in reply to Re^3: Can't close STDIN/STDOUT/STDERR
in thread Can't close STDIN/STDOUT/STDERR

You can find samples of how to redirect file handles in open:

open STDOUT, '>', "/dev/null" or die "Can't redirect STDOUT: $!";