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

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

Thread Previous | Thread Next
From:
John Peacock
Date:
September 1, 2011 03:35
Subject:
Re: Fwd: [rt.cpan.org #70622] Versions Disappear
Message ID:
4E5F5FDF.1050807@havurah-software.org
On 08/31/2011 11:22 PM, David E. Wheeler wrote:
> Porters,
>
> Can someone explain this to me? I don't understand why Package->VERSION would return something that's not printable. I've been using this in code for years, e.g.,
>
>              meta {
>                  name is 'generator';
>                  content is 'PGXN::Manager ' . PGXN::Manager->VERSION;
>              };

Just as an aside, using UNIVERSAL::VERSION in this fashion worked like 
this up until Perl 5.10.0, meaning if the module in question used a 
v-string for its $VERSION scalar, the output was not printable without work.

Here is the original discussion for your perusal:

   http://www.nntp.perl.org/group/perl.perl5.porters/2011/06/msg173710.html

John

Thread Previous | Thread Next


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