On 2011.2.17 1:56 PM, John Peacock via RT wrote:
Show quoted text>> Reading that discussion, I'm not sure how it equates to banning 123_45. Is it
>> possibly an overzealous restriction?
>
> Some more information can be found here:
>
>
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2006-01/msg00245.html
>
> Basically, the INTEGER_ALPHA format cannot be cleanly converted to a
> v-string and hence cannot be printed with sprintf("%vd",$ver). So that
> variation was forbidden (without much discussion, I might add).
If 123.00_45 is ok, could 123_45 be done in the same way?
Show quoted text> The fact that no one has probably written any code with "%vd" in at
> least 5 or 6 years, and since version.pm is now in the core (making that
> construct doubly useless), we could probably lift that restriction. But
> that discussion needs to happen on p5p probably.
Yay...
Show quoted text> Can we just agree to stop imaging that underscores in the $VERSION
> scalar have any special meaning and just add an ALPHA field to META.YML.
> Once that exists, M::B, PAUSE, CPAN, and CPANPLUS and the rest of the
> toolcan can use that instead.
I agree, but that will take a while. META.whatever is just starting to become
canonical. OTOH I have a work around (123.00_01) and you're right that the
alpha syntax should die.
So I'm happy to drop it.
--
"Clutter and overload are not an attribute of information,
they are failures of design"
-- Edward Tufte