in reply to Can a module's POD access the module's variables?
but as you can see from the comment, if i package the thing up with make tardist, it fails. so i commented it out.my $version_pod = <<'=cut'; =pod =head1 NAME HTML::Template::Compiled - Template System [...] =head1 VERSION our $VERSION = "0.57"; =cut # doesn't work with make tardist our $VERSION = ($version_pod =~ m/^our \$VERSION = "(\d+(?:\.\d+)+)"/m +) ? $1 : "0.01";
my reason for this was to always have the version visible in the pod and up-to-date with the $VERSION variable (and not using the cvs revision). to address this, i wrote a test-script that compares the two strings, so i'm always safe when the testsuite succeeds.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can a module's POD access the module's variables?
by Koolstylez (Scribe) on Dec 13, 2005 at 15:39 UTC |