On Wed, Feb 9, 2011 at 3:40 PM, Shmuel Fomberg <[email protected]> wrote:
> On 2011/02/09 15:31, sawyer x wrote: > > > > > with version 0.29_01, but I see search.cpan treat it like a normal > > release, > > and offer it as primary. > > what did I do wrong? > > > > > > Simple: in your META.yml[1], the version is 0.2901. > > The META always wins. > > Check what tool you used to configure this > > [1] > > http://cpansearch.perl.org/src/SEMUELF/Data-ParseBinary-0.2901/META.yml > > As written in that very same file, it was generated by MakeMaker, using > make dist. > Any idea how to convince it to copy the underscore too? > Yes, but it will make you laugh. :) You specified $VERSION as a number (0.29_01), instead of as a string using quotes ("0.29_01"). That made Perl evaluate it in numerical context instead of a string context, so it ignored the underscore, giving you the number 0.2901. Sorry I haven't said it in the first place, but I didn't know that was the problem. I just checked and tested it and indeed that's why. Simply change: our $VERSION = 0.29_01; to our $VERSION = "0.29_01"; :) Sawyer.
_______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
