![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re (tilly) 7: Tie & Destroy, OOPby tilly (Archbishop) |
on Aug 10, 2001 at 05:14 UTC ( #103730=note: print w/replies, xml ) | Need Help?? |
Yes, you can do the same with a global variable. However
my point was that even with every lexical in file scope,
having one of the direct references to a lexical inside of
a function brings the problem back. BTW the more I think about it, the more I like the idea of having a flyweight implementation with an END block to kill all of the objects. That allows module authors to create objects which clean themselves up reliably without assuming that users are cautious.
In Section
Seekers of Perl Wisdom
|
|