# from Eric Wilhelm # on Tuesday 21 April 2009 13:23: >No, it is not ok to get success from 'use foo v1.2.10' when foo's >$VERSION is v1.2.3_1 -- especially when a version.pm comparison would >tell you that v1.2.10 > v1.2.3_1.
Oh, whatever. I give up. $ perl5.8.8 -e 'BEGIN{package foo; $VERSION=v0.2.1_1; $INC{"foo.pm"}=1;} use foo v0.2.10; print "yipeee!\n"' yipeee! $ perlv5.10.0 -e 'BEGIN{package foo; $VERSION=v0.2.1_1; $INC{"foo.pm"}=1;} use foo v0.2.10; print "yipeee!\n"' foo version v0.2.10 required--this is only version v0.2.1_1 at -e line 2. BEGIN failed--compilation aborted at -e line 2. So, a release following an alpha version must increment the middle tuple, and the part after the rightmost dot (which is one or two tuples depending on whether the year is even or odd) should be like 99_01. Any less-careful navigation of this snakepit will get you bitten. --Eric -- "It is a mistake to allow any mechanical object to realize that you are in a hurry." --Ralph's Observation --------------------------------------------------- http://scratchcomputing.com ---------------------------------------------------