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

Re: [ #70622] Versions Disappear

Thread Previous | Thread Next
David E. Wheeler
September 5, 2011 11:45
Re: [ #70622] Versions Disappear
Message ID:
On Sep 4, 2011, at 6:39 AM, John Peacock 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.

Oh. Why not return the object?

>> But in bleed and
>> 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.

I hear ya. Sorry to bring up old pains again.



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