in reply to Can a module's POD access the module's variables?
However, that doesn't mean you can't have a version number in your POD. I often use CVS to do my version control, and with CVS, you can tell it to stick in a version number. Something as simple as the following will do:
When checking in, CVS will stick the current version number inside the tag.=head1 VERSION $Revision: $
To get the version number inside a variable, I use something like:
our ($VERSION) = q $Revision: $ =~ /[\d.]+/g;
|
|---|