On Tue, Jul 28, 2009 at 4:41 PM, Eric Wilhelm<enoba...@gmail.com> wrote:
> It appears that you're using the deprecated (or soon-to-be-deprecated
> (or maybe not deprecated depending on how you quote it?)) multi-dotted
> version number without the leading v.  This might be a bug in the new
> version.pm (or a bug in the deprecation), but note that the docs
> recommend that you have the leading 'v' for multi-dotted versions:
>
>> use version; our $VERSION = qv('1.0.6');
>
>  use version 0.77; our $VERSION = qv("v1.2.3");

That's indeed the issue.   Changing it to qv('v1.0.6') works fine.

> I think 0.77 was supposed to be just a docs cleanup, but maybe something
> got changed slightly.  Anyway, the docs were historically somewhat
> distracting and tended to recommend the least-best ways to do stuff.

No, the issue is in the XS_VERSION_BOOTCHECK macro as defined in
XSUB.h in the Perl core.  Before 5.10, it does a string comparison,
which somehow gets thrown off without the leading "v".

> Aside:  I just do:
>
>  our $VERSION = v1.2.3;

But you shouldn't.  :-)  Unless you require Perl 5.10.

-- David

Reply via email to