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 reply to Re^2: How to close all open file descriptors after a fork?
by bart
in thread How to close all open file descriptors after a fork?
by nneul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |