Create your own stack without bothering with local()?
Or localise your stack.
our @x = 3; foo(7); sub foo { local @x = ( shift, @x ); print $x[0], "\n"; }
Not the most efficient thing in the world though... I miss languages where I can apply expressions to dynamic scope entry/exit :-)
In reply to Re^2: Examing local's stack
by adrianh
in thread Examing local's stack
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |