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