Eric Wilhelm wrote:
> Actually, I think it's:
> 
>   X       sort as a dotted tuple
>   X.Y     sort as a dotted tuple
>   X.Y.Z   sort as a dotted tuple
>   X.Y.Z.A sort as a dotted tuple
> 
> All of the trouble we've ever had is just that X.Y happens to look like 
> some kind of a number and like a dotted 2-tuple.  But instead of perl 
> version 5.564.0 or 6.0.x, it was 5.5.640.

X.Y is a [floating point] number and is in fact described that way in the Perl
documentation as appropriate to be used as $VERSION.

> John, am I on the right track here?  Are there any cases not handled by 
> the above?  (well, ignoring "1.1234567 is 1.123.456.700" and beyond.)

Here is a portion of my CPAN directory:

[DIR] SVN-Notify-Config-0.0905/      08-Nov-2006 19:37    -
[DIR] SVN-Notify-Config-0.0906/      09-Nov-2006 10:38    -
[DIR] SVN-Notify-Config-0.0907/      17-Nov-2006 18:37    -
[DIR] SVN-Notify-Config-0.0908/      02-Mar-2008 06:37    -
[DIR] SVN-Notify-Config-0.0909/      04-Mar-2008 20:36    -
[DIR] SVN-Notify-Config-0.091/       05-Mar-2008 05:37    -
[DIR] SVN-Notify-Config-0.0911/      08-Mar-2008 09:36    -

I'm not the only person to use this scheme (of varying the increments between
releases).  We cannot consider the portion to the right of the decimal
independently because of the different lengths involved.  The $VERSION's listed
above only make sense if you compare them as numbers, not as tuples.


John

Reply via email to