Data::Section

Read multiple hunks of data out of your DATA section
Download

Data::Section Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Ricardo Signes
  • Publisher web site:
  • http://search.cpan.org/~rjbs/

Data::Section Tags


Data::Section Description

Read multiple hunks of data out of your DATA section Data::Section is a Perl module that provides an easy way to access multiple named chunks of line-oriented data in your module's DATA section. It was written to allow modules to store their own templates, but probably has other uses.SYNOPSIS package Letter::Resignation; use Data::Section -setup; sub quit { my ($class, $angry, %arg) = @_; my $template = $self->section_data( ($angry ? "angry_" : "professional_") . "letter" ); return fill_in($$template, \%arg); } __DATA__ ____ Dear jerks, I quit! -- {{ $name }} ____ Dear {{ $boss }}, I quit, jerks! -- {{ $name }} Requirements: · Perl


Data::Section Related Software