develooper Front page | perl.perl5.porters | Postings from June 2011

[perl #93852] [PATCH] Report a better error when trying to use negative version numbers instead of 'Invalid version format (non-numeric data)' as it currently does

Thread Next
From:
Father Chrysostomos via RT
Date:
June 30, 2011 19:33
Subject:
[perl #93852] [PATCH] Report a better error when trying to use negative version numbers instead of 'Invalid version format (non-numeric data)' as it currently does
Message ID:
rt-3.6.HEAD-16080-1309487589-1490.93852-15-0@perl.org
On Thu Jun 30 13:26:01 2011, claes wrote:
> 
> Hi,
> 
> saw a 0.00 release uploaded today and out of curiosity tried using a
>    negative $VERSION in a module and then C<use Module VERSION> and it
>    reported a 'Invalid version format (non-numeric data)' which is
>    slightly confusing. Attached patch checks if it begings with a dash
>    and then reports a better error. Also updated docs that version is
>    expected to be a positive number.

Thank you. Applied as f39335f98.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About