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

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Tuesday August 11, 2009
01:29 AM

How To Set Your Module's Version Number

[ #39441 ]

There's a fair bit of discussion about version numbers and people get confused by them. Get confused no more. Here's the way you should be setting version numbers in your modules:

our $VERSION = "0.001"; # or "0.001_001" for a dev release

dagolden goes in extreme detail as to why you need this and what led to this state of affairs.

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.
  • Of course, you only actually NEED the eval if you have a dev release.

    But if you're stupid, lazy or don't mind high-compatibility boilerplate, just stick with using the eval all the time.

    • Given that I often automate updating my version numbers, I find the eval to be extremely helpful as I don't need to go through a large distribution and add that in every single time I want a dev release (and then removing it every time I have a regular release).