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

Re: [rt.cpan.org #70622] Versions Disappear

From:
Jesse Luehrs
Date:
September 8, 2011 07:27
Subject:
Re: [rt.cpan.org #70622] Versions Disappear
Message ID:
20110908142737.GF22850@tozt.net
On Thu, Sep 08, 2011 at 09:10:41AM -0400, David Golden wrote:
> On Wed, Sep 7, 2011 at 12:57 PM, David E. Wheeler <david@kineticode.com> wrote:
> > But honestly, isn't it time we figured out what's the *correct* thing to do, and do that? Maybe scope it with `use v5.10` or even `use v5.16`, and then just do that? Time to find a solution and end the pain (not to mention the arguments).
> 
> I would support having "package NAME VERSION" automatically upgrade
> VERSION to a version object.  I think right now it just puts it as a
> string in $NAME::VERSION.  That syntax already requires a valid
> version string -- not "3.0crap" or anything like that.

$ perl -E'package Foo 1.23; say ref($VERSION)'
version

-doy



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