This is not a perl solution, but if you need redirection
for the lifetime of a process. socat
a sure bet. NTK
If Perl is the Swiss Army chainsaw of programming languages,
then SOCAT is the Swiss Army chainsaw of, uh,
BTW, NTK tracking section is a must read every
socat is way better than netcat.
stefp -- check out TeXmacs