in reply to Re: 5.10: Are scoped constants possible?
in thread 5.10: Are scoped constants possible?

Indirectly you led me to this extract from Perl 5.10 delta

$^H and %^H

The implementation of the special variables $^H and %^H has changed, to allow implementing lexical pragmas in pure Perl.

And that leads to perlpragma which should allow what I want. Thanks.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^2: 5.10: Are scoped constants possible?

Replies are listed 'Best First'.
Re^3: 5.10: Are scoped constants possible?
by Anonymous Monk on Dec 28, 2007 at 03:09 UTC
    If you get this to work with constants, please do post how. It's not really clear to me how I would have to tweak the myint sample given in perlpragma to provide lexically scoped constants.