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

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

From:
John Peacock
Date:
September 4, 2011 06:39
Subject:
Re: [rt.cpan.org #70622] Versions Disappear
Message ID:
4E637F99.6080009@havurah-software.org
On 09/04/2011 01:51 AM, David E. Wheeler wrote:
> So let me see if I understand this correctly. Starting with Perl
> 5.10, UNIVERSAL::VERSION returned a version object that, when used in
> a string context, stringified to its original, declared form (which
> for vstrings meant sprintf "v%vd").

Close; it always returned the stringified version object, not the 
version object itself.

> But in bleed and version.pm
> 0.92-0.94, UNIVERSAL::VERSION now returns exactly the same value as
> $Foo::VERSION. Which kind of obviates the use of UNIVERSAL::VERSION
> when called with no arguments, no?

That's it in a nutshell...

> I think if I had noticed this thread before I would have argued with
> David Golden about this point. It seems to me that a version object
> is far more useful in general than whatever crap happened to be put
> into $VERSION -- and the latter can be fetched directly, anyway.\

I'm sorry I didn't fight harder, but at this point, I am as sick of 
version arguments as much as anyone.

John



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