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

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

From:
David E. Wheeler
Date:
September 8, 2011 10:56
Subject:
Re: [rt.cpan.org #70622] Versions Disappear
Message ID:
D21C6809-D2F4-42DE-8702-5537EC56372F@kineticode.com
On Sep 8, 2011, at 10:50 AM, David Golden wrote:

> To say that differently -- VERSION requires things to be upgradeable
> to version objects not because version objects are inherently
> desirable in themselves, but because it's what happens internally
> during "use NAME VERSION" checks.
> 
> Having UNIVERSAL::VERSION return a useful value was probably a poor
> API choice in retrospect.

*sigh*

What's the preferred way to get the version for a package, then? $Foo::VERSION? Never cared for the direct package access syntax.

Best,

David




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