|
|
| Think about Loose Coupling | |
| PerlMonks |
Re^2: tie() weirdnessby robin (Chaplain) |
| on Nov 21, 2005 at 15:51 UTC ( #510468=note: print w/ replies, xml ) | Need Help?? |
|
I guess one solution would be to use a temporary mortal instead of the targ i just tried that. It doesn't work, because the mortals get freed on the return from the FETCH routine. I should have realised that would happen. Ouch! I wonder how it can be fixed then? Update: for completeness I should point out that, although it is indeed true that mortals get freed on return from the FETCH routine, that isn't the (only) reason this doesn't fix the problem. A correct (I hope!) diagnosis and patch can be found in the node below.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||