It may be important for you to make the distinction between version numbers of individual modules and of the entire program. Let your source control deal with the former with something like the following, assuming you're using CVS:
$My::Package::VERSION = substr(q$Revision$, 10);
(There are lots of variations on this, just use one that works for you.)
For the latter, I'd actually recommend against what Corion mentioned -- mixing letters and numbers is a no-no for automatic version comparisons and will cause you lots of pain when dealing with CPAN. And even if you're never dealing with CPAN you might want to use some the tools that it uses to manage your own code.
My rules of thumb are:
- Don't go to version 1.0 until you have a fairly stable API
- Use hundredths as increments rather than tenths (too coarse) or thousandths (too granular). So you'd have 0.01, 0.02, 0.03... instead of 0.1, 0.2, 0.3... or 0.001, 0.002, 0.0003... This allows you to make incremental improvements while still leaving room for substantial updates (e.g., 0.41 -> 0.50).
- Incremental (+.01) updates should have roughly the same amount of change, if possible. This lets people get a feel for how often they need/want to upgrade.
Good luck
Chris
M-x auto-bs-mode
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.