This is not a perl solution, but if you need redirection
for the lifetime of a process. socat is
a sure bet. NTKsaid:
: .
If Perl is the Swiss Army chainsaw of programming languages,
then SOCAT is the Swiss Army chainsaw of, uh,
shell/networking tools.
BTW, NTK tracking section is a must read every
friday evening.