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

Re: [ #70622] Versions Disappear

David E. Wheeler
September 8, 2011 10:56
Re: [ #70622] Versions Disappear
Message ID:
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.


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


David Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About