Rich Bowen wrote:
>
> On Tue, 15 Jan 2002, David Dyck wrote:
>
> > One example that is used in some of the perl distribution to format
> > Revision numbers uses sprintf like this:
> > $VERSION = sprintf("%d.%02d", q$Revision: 1.6 $ =~ /(\d+)\.(\d+)/);
>
> Well, yes, we could do that, but it's a little late now. I try to
> release 1.10 as the first version of most modules for this very reason,
> but I don't usually mess with it for modules, like this one, that are
> not the main module in the distribution. I see from your comments here
> that it is perhaps something that I should think about more.
>
> Yes, we could bump the next version up to 1.61. I'll mention this to the
> rest of the development team.
If you do decide to use the sprintf() style, please do this instead:
$VERSION = sprintf("%d.%03d", q$Revision: 1.6 $ =~ /(\d+)\.(\d+)/);
^
since that corresponds to the default version format that Perl itself uses
(i.e. 3 places between decimals). I actually have web modules with over 99
subversions (which means of course that I should block update all the modules
to the next major version ;~).
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747