i tried to do the same for HTML::Template::Compiled, and it worked:
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";
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 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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.