in reply to Re^9: localizing lexical without messing with tie ?
in thread localizing lexical without messing with tie ?
UPDATE: oversaw the readmore-part, I'm going to have a closer look at it, but as I said tied vars are really an edgecase, it's over-optimization to care about it now and to invest so much code.
No need for that I can undo it explicitly.
The code I posted using untie does exactly what I need for pack-vars.
> There are a lot more magic variables than just tied ones, but you're not likely to find them on lexicals without putting it on them explicitly.
Could you show me an example with pack-vars where magic (other than tie) results in problems after an explicit local?
DB<1> sub tst { local $_[0]; $_[0]=10 } DB<2> $a=1 DB<3> tst $a DB<4> print $a 1
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: localizing lexical without messing with tie ?
by ikegami (Patriarch) on Sep 11, 2010 at 02:11 UTC | |
by LanX (Saint) on Sep 11, 2010 at 12:57 UTC | |
by ikegami (Patriarch) on Sep 11, 2010 at 14:40 UTC | |
by LanX (Saint) on Sep 12, 2010 at 13:04 UTC | |
by ikegami (Patriarch) on Sep 12, 2010 at 15:40 UTC | |
|