Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Local for lexicalsby JavaFan (Canon) |
on Aug 10, 2009 at 15:27 UTC ( [id://787355]=note: print w/replies, xml ) | Need Help?? |
No, that's the point of lexicals. If you want dynamic scoping, you don't want lexical scoping. So, don't use a lexical, use a package variable.
Of course, if you use XS, or Devel::Declare, anything is possible, but there's no pure Perl solution.
In Section
Seekers of Perl Wisdom
|
|