Yitzchak Scott-Thoennes [[EMAIL PROTECTED]] quoth:
*>
*>The point is that use Module VERSION does a numeric compare, and if
*>$VERSION is a string that "isn't numeric", the user gets a warning.
*>Doesn't matter if you say 1, 1.0, 1.00.

I wasn't talking about the compare, merel
only 'valid' form of the version is 1.00 as I'm aware of the problems with
the "_" but since this is a convention only used for alpha/beta modules
it isn't that critical when it warns. Especially since this module isn't
even on CPAN just yet, I didn't see much use for going down this
particular bunny hole.

*>>been the semantic for denoting a beta for a long time so MM not dealing
*>>with it would be a surprise.
*>
*>Try it:

I did and it worked fine but the $VERSION _must_ include the quotes so
$VERSION = 1.00_01 must become $VERSION = '1.00_01' as you removed the
quotes on the example. With the quotes it generates the correct
distribution name.

*>I agree that using VERSION at all is good.  But we might as well tell folks
*>how to do it right.  For now, for alpha/beta versions that means:
*>  $VERSION = "1.12_01";
*>  $XS_VERSION = $VERSION; # only needed if you have XS code
*>  $VERSION = eval $VERSION;

I didn't say you were incorrect, just perhaps a bit more overkill on the
simple correction I was trying to gently make. Perhaps you should mention 
this detail to Andreas to include this in the CPAN.pm documentation.

e.

Reply via email to