Slash Boxes
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.
More | Login | Reply
Loading... please wait.
  • Take heed of this line from perldoc perlmod:
    $VERSION = do { my @r = (q$Revision: 2.21 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; # must be all one line, for MakeMaker
    You still gotta roll a major revision at least once each 100 minor revisions though. {grin}
    • Randal L. Schwartz
    • Stonehenge
    • Bleargh. I like to keep the VERSION numbers to myself, and specify the module version number as a whole entity in the Makefile.PL.


      • If you don't mind a lot of manual work where automation can help, go right ahead.

        Me, I've got better things to do with my time.

        • Randal L. Schwartz
        • Stonehenge
        • It's not so much that, it's the idea that CVS/RCS revision id's aren't necessarily the best things to use as the version for your module (perhaps distribution would be a better term than module) as a whole anyway. I'd rather bump the version number when I want to, not when I correct a typo in the POD.

          I've got a full on woody for automation everywhere else. :-)