in reply to Testing Input and Output

I haven't worked with it myself, but maybe you can take a look at IO::Scalar.

from the manpage:

use 5.005; use IO::Scalar; $data = "My message:\n"; ### Open a handle on a string, and append to it: $SH = new IO::Scalar \$data; print $SH "Hello"; print $SH ", world!\nBye now!\n"; print "The string is now: ", $data, "\n"; ### Open a handle on a string, read it line-by-line, then c +lose it: $SH = new IO::Scalar \$data; while (<$SH>) { print "Got line: $_"; } close $SH;

So IMHO you should be able to redirect STDOUT and STDERR to an IO::Scalar object, and read the data back when you need it.

Isn't perl nice? :-)

-- Joost downtime n. The period during which a system is error-free and immune from user input.