Syntactic Confectionery Delight | |
PerlMonks |
Re^2: How to close all open file descriptors after a fork?by bart (Canon) |
on Jul 19, 2005 at 14:38 UTC ( [id://476127]=note: print w/replies, xml ) | Need Help?? |
I prefer "lexical FHs" because they will automatically closed on scope exitNo they won't. Your array will still hold a copy and they all will be kept open. These file handles are references, are they not? You could try weaken these references in the array, and they'll automatically go away as normal — leaving just an undef in place.
In Section
Seekers of Perl Wisdom
|
|