in reply to Re: need to read/write from/to an external program
in thread need to read/write from/to an external program

You have the syntax for close wrong. It takes just one argument, so Reader is parsed as a bareword and not a filehandle. Simply:

close Writer; close Reader;

... instead of trying to close both with one statement.

print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!