in reply to Re^3: Local for lexicals
in thread Local for lexicals
does what I want, obviously without subverting Perl in XS-y ways.{ my $temp = $x; $x = $new; ... $x = $temp; }
Is it really the case that setting aside a value to be restored at the end of scope is what is meant by “dynamic scoping”?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Local for lexicals
by JavaFan (Canon) on Aug 10, 2009 at 16:22 UTC | |
by doom (Deacon) on Aug 10, 2009 at 21:26 UTC | |
by LanX (Saint) on Aug 10, 2009 at 22:12 UTC | |
by JadeNB (Chaplain) on Aug 10, 2009 at 16:27 UTC |