Hi Andreas,
On Mon, May 12, 2008 at 1:38 PM, Andreas Koenig via RT
<bug-Text-Autoformat@rt.cpan.org> wrote:
Show quoted text>
> <URL:
http://rt.cpan.org/Ticket/Display.html?id=35814 >
>
> The reason is of course that the version arithmetic between folating
> point and multidot notation strikes
>
> % perl -le 'use version;print version->new("1.13") <=>
> version->new("1.14.0");'
> 1
>
> To beat 1.13 one nees something like 1.130.1, 1.131.0, or 2.0.0
>
> I'd like to see a new release that sets this straight.
>
The problem is that it's mixing numeric version (1.13) with extended
version (1.14.0), in version.pm parlance. If you use the new qv
operator/function, you get the desired result:
$ perl -le 'use version;print qv("1.13") <=> qv("1.14.0");'
-1
Sadly, CPAN::Version doesn't use this per default. Can this somehow be fixed?
Thanks again, Tincho.
--
Martín Ferrari