2009/9/23 John Peacock <john.peac...@havurah-software.org>:
> demerphq wrote:
>>
>> Where does the "only one underscore allowed" bit come from tho?
>
> It is a longtime convention of CPAN itself:
>
>> Modules know their associated Distribution objects. They always refer
>> to the most recent official release. Developers may mark their releases
>> as unstable development versions (by inserting an underbar into the
>
>                                                 ^^ emphasis mine
>>
>> module version number which will also be reflected in the distribution
>> name when you run ’make dist’), so the really hottest and newest dis-
>> tribution is not always the default.
>
> And it may actually be discussed in "Programming Perl" (which I can't put my
> hand on at this precise moment).
>
> It has also been a documented behavior of version objects for more than 6
> years now.  I realize that it is only relatively recently (two years since
> 5.10.0) that version.pm has been in the core, but this is the very first
> time that I am aware of that someone has fallen afoul of it.
>
> ActiveState is apparently shipping a non-official package.  Any time you
> think you are doing something "clever" the odds are that you are actually
> being stupid instead.  This definitely falls into that category...

Im familiar with this documentation and in fact it is why i asked you
about this. You see I don't think reading that sentence as meaning
"one and only one" is as reasonable as reading it as "at least one". I
think the most natural reading is that anymore than zero  underbars in
the version marks it as a dev release, not "one and only one"
underbar.

Remember the old Perl maxim of "be tolerant of what you expect and
strict with what you emit".

Are there technical reasons why this should be disallowed?

cheers,
Yves




-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Reply via email to