develooper Front page | perl.perl5.porters | Postings from February 2012

Re: [perl #109744] referenced constant loses readonlyness

Thread Previous | Thread Next
From:
Zefram
Date:
February 6, 2012 11:23
Subject:
Re: [perl #109744] referenced constant loses readonlyness
Message ID:
20120206192257.GA32551@lake.fysh.org
I wrote:
>I think the workaround that I need at this point is a function that
>generates a fresh readonly scalar (with specified value), doesn't wave it
>anywhere near a pad, and returns a ref to it.

Now on CPAN as Scalar::Construct::constant().

-zefram

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