Pod::ConstantsPod::Constants is a Perl module to include constants from POD. | |
Download |
Pod::Constants Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Sam Vilain
- Publisher web site:
- http://search.cpan.org/~samv/
Pod::Constants Tags
Pod::Constants Description
Pod::Constants is a Perl module to include constants from POD. Pod::Constants is a Perl module to include constants from POD.SYNOPSIS use vars qw($myvar $VERSION @myarray $html %myhash); use Pod::Constants -trim => 1, 'Pod Section Name' => $myvar, 'Version' => sub { eval }, 'Some list' => @myarray, html => $html, 'Some hash' => %myhash; =head2 Pod Section Name This string will be loaded into $myvar =head2 Version # This is an example of using a closure. $_ is set to the # contents of the paragraph. In this example, "eval" is # used to execute this code at run time. $VERSION = 0.16; =head2 Some list Each line from this section of the file will be placed into a seperate array element. For example, this is $myarray. =head2 Some hash This text will not go into the hash, because it doesn't look like a definition list. key1 => Some value (this will go into the hash) var2 => Some Other value (so will this) wtf = This won't make it in. =head2 %myhash's value after the above: ( key1 => "Some value (this will go into the hash)", var2 => "Some Other value (so will this)" ) =begin html < p >This text will be in $html< /p > =cut Requirements: · Perl
Pod::Constants Related Software