Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • It's a cool hack, but I use something else to avoid having to modify the version number twice. I don't modify the version number at all - I let CVS do that for me:

    our ($VERSION) = q $Revision: 1.0$ =~ /[\d.]+/g;

    =head1 VERSION

    $Revision: 1.0$
    The previous line starts with a significant space, but <ecode> decided to ignore it.

    =cut

    And since I use a template to start a module with, I never have to remember to set the version number.

    Not a cool hack, but something I do use for CPAN modules.