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

Re: Fwd: [ #70622] Versions Disappear

Thread Previous | Thread Next
John Peacock
September 1, 2011 03:35
Re: Fwd: [ #70622] Versions Disappear
Message ID:
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:


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