On Feb 4, 2004, at 2:34 PM, David Robins wrote:

It's called "version".

http://search.cpan.org/dist/version/

It allows this syntax:

our $VERSION = version->new(qw$Revision: 1.10 $);

And it doesn't work for the comparisons. It'll import a CVS tag, but it still
thinks 1.2 > 1.10.

No, it doesn't:


% perl -Mversion -le 'print version->new(qw$ Revision 1.2$) > version->new(qw$ Revision 1.10$)'

% perl -Mversion -le 'print version->new(qw$ Revision 1.10$) > version->new(qw$ Revision 1.2$)'
1


Regards,

David

Reply via email to