![]() |
|
The stupid question is the question not asked | |
PerlMonks |
•Re: Catching errors in closing lexical filehandlesby merlyn (Sage) |
on Sep 27, 2004 at 11:57 UTC ( #394129=note: print w/replies, xml ) | Need Help?? |
It's actually rather simple.
Of course, this is a global change, but that's life. You can make it regional by putting it inside a local setting: The nested parens here ensure that the handle is destroyed before the local sub assignment goes out of scope. -- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|