Re: Version Problem?

[email protected] (James Muir)
Newsgroups perl.cpan.discuss
Message-ID <[email protected]>
Adam, John, Randy,

Thanks for the insights into this problem. The scheme I adopted was
produced by running Module-Starter-PBP-0.0.2. It inserted the version
number with the qv() and I said to myself "cool, one less thing to think
about!" :-) .  Well the joke's on me, but I suspect others will also run
into this problem.

I think I'll take Adams advice about the version number:

0.0.1 -> 0.000001

John, FWIW I am using: ExtUtils-MakeMaker-6.30.

-James

Adam Kennedy wrote:
> This short answer is "Unlike you may have read about in some Perl 
> books, the use of three part versions unless entirely necesary is 
> discouraged. STILL".
>
> Edge cases like this keep popping up, and if you can avoid three part 
> versions, and just use a more traditional 0.01 versioning, please do so.
>
> Adam K
>
> James Muir wrote:
>> Hi Everybody,
>>
>> I'm trying to build a module for submission to CPAN. When I use 
>> Build.PL, the module builds without any problems (as far as I can 
>> tell :-)), BUT... when I use Makefile.PL I get the following message:
>>
>> (/home/james/Gtk2-Ex-MindMapView-0.0.1)> perl Makefile.PL
>> Version string 'undef' contains invalid data; ignoring: 'undef' at 
>> /usr/lib/perl5/5.8.8/ExtUtils/MM_Any.pm line 1307.
>> Writing Makefile for Gtk2::Ex::MindMapView
>>
>> my simple Makefile.PL is as follows:
>>
>> (/home/james/Gtk2-Ex-MindMapView-0.0.1)> cat Makefile.PL
>> # Note: this file was auto-generated by Module::Build::Compat version 
>> 0.03
>> use ExtUtils::MakeMaker;
>> WriteMakefile
>> (
>>          'PL_FILES' => {},
>>          'INSTALLDIRS' => 'site',
>>          'NAME' => 'Gtk2::Ex::MindMapView',
>>          'EXE_FILES' => [],
>>          'VERSION_FROM' => 'lib/Gtk2/Ex/MindMapView.pm',
>>          'PREREQ_PM' => {
>>                           'Test::More' => 0,
>>                           'Gnome2::Canvas' => 0,
>>                           'version' => 0,
>>                           'Graph' => 0
>>                         }
>>        )
>> ;
>>
>>
>> and the version info in MindMapView.pm is as follows:
>>
>> (/home/james/Gtk2-Ex-MindMapView-0.0.1/lib/Gtk2/Ex)> cat 
>> MindMapView.pm | head
>>
>> package Gtk2::Ex::MindMapView;
>>
>> use version; $VERSION = qv('0.0.1');
>>
>> use warnings;
>> use strict;
>> use Carp;
>>
>> use Gnome2::Canvas;
>>
>>
>> as far as I know about the module building process (which is very 
>> little at this point), everything looks OK. What am I missing?
>> -James
>>
>>
>>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.