On Wed, 16 Apr 2008 22:00:05 +0200
[EMAIL PROTECTED] (Andreas J. Koenig) wrote:
> It is a little known fact how decimal numbers convert to version
> strings in perl. Frankly, I do not even know where it is documented.
> % perl -le 'use version;print version->new("0.3") <=>
> version->new("0.3.1");'
> 1
> This means that 0.3 is higher than 0.3.1. To beat 0.3 with a versions
I see. I have filed an RT request (#35130) to Lingua-Features to
suggest a better version text naming. But I think that it would be
great if 0.3.1 can be higher than 0.3, since that is natural to human
reading, and is the current practice of many open source projects.
I just took a look on all the uploaded CPAN distributions (15000+).
It's really amazing how variant people name their distribution version
text. I could understand how hard it is to design a method for version
text comparison that works on all cases.
Thank you for your time and explanation.
--
Best regards,
imacat ^_*' <[EMAIL PROTECTED]>
PGP Key: http://www.imacat.idv.tw/me/pgpkey.asc
<<Woman's Voice>> News: http://www.wov.idv.tw/
Tavern IMACAT's: http://www.imacat.idv.tw/
TLUG List Manager: http://lists.linux.org.tw/cgi-bin/mailman/listinfo/tlug
pgpb0OadT5h34.pgp
Description: PGP signature
