Skip Menu |

This queue is for tickets about the version CPAN distribution.

Report information
The Basics
Id: 70622
Status: rejected
Priority: 0/
Queue: version

People
Owner: Nobody in particular
Requestors: david [...] kineticode.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Versions Disappear
Date: Tue, 30 Aug 2011 17:28:23 -0700
To: bug-version [...] rt.cpan.org
From: "David E. Wheeler" <david [...] kineticode.com>
I'm using Perl 5.14.1 on Mac OS X 10.7 "Lion". I compiled Perl myself. With any of version v0.92-v0.94 installed from CPAN, I get this: perl -MPGXN::Meta::Validator -E 'say PGXN::Meta::Validator->VERSION' That's no version. When I downgrade to v0.91, it works: perl -MPGXN::Meta::Validator -E 'say PGXN::Meta::Validator->VERSION' v0.14.0 This makes me sad. Best, David
On Tue Aug 30 20:28:35 2011, david@kineticode.com wrote: Show quoted text
> I'm using Perl 5.14.1 on Mac OS X 10.7 "Lion". I compiled Perl myself. > With any of version v0.92-v0.94 installed from CPAN, I get this: > > perl -MPGXN::Meta::Validator -E 'say PGXN::Meta::Validator-
> >VERSION'
> > > That's no version.
No, it is just invisible (actually the nonprintable ShiftOut character): $ cat VTest.pm package VTest; our $VERSION=v0.14.0; 1; $ perl -I. -MVTest -e 'print $VTest::VERSION' $ perl -I. -MVTest -e 'printf("%vd", $VTest::VERSION)' 0.14.0 NOTE: I am not using version.pm's UNIVERSAL::VERSION at all, so you can see the actual behavior that is being demonstrated. The complaint was raised on p5p that UNIVERSAL::VERSION returned a stringified version object when use without a parameter, rather than the contents of the package's $VERSION scalar. So, in both the bleadperl release and the CPAN release of version.pm, UNIVERSAL::VERSION now returns the actual contents of the scalar (which is what it used to do before version objects were added to the core). I don't like it, but there you go. Bring it up on p5p and maybe you can convince everyone else... :(