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

Re: [ #70622] Versions Disappear

David Golden
September 8, 2011 14:25
Re: [ #70622] Versions Disappear
Message ID:
On Thu, Sep 8, 2011 at 4:11 PM, David E. Wheeler <> wrote:
> I'm outputting the version in the "generated by" meta header of HTML. I do something similar for the PGXN API, where a header identifies the version.

If it were my code, I'd use $Foo::VERSION.  I don't care about global
access, because it's my own global.

> So I just want a string. And the original is a vstring.

And now you're stuck with it. You can do this if you know it's a
v-string and don't want to mess with

    sprintf("v%vd", $Foo::VERSION) # "v1.2.3"

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