in reply to Re^2: How to find all open STDERR and STDOUT dups?
in thread How to find all open STDERR and STDOUT dups?

I still need to figure out how to selectively close those handles that correspond to STDERR and STDOUT,

Would it not be sufficient to simple close all open files in your child?

use POSIX (); ... } else { ## child POSIX::close( $_ ) for 0 .. 255; ## Or higher if that's a possibil +ity ''' }

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."