in reply to equivalent to prove?
It's easy to capture STDOUT and then send it along. When you launch your sub-script do it like this:
open(SUB, "sub.pl |") or die $!
The "|" at the end tells Perl to do a fork()/exec() and hook up STDOUT from sub.pl to your SUB filehandle. Then you can do:
while (my $line = <SUB>) { # do something with $line... # then print it out: print $line; }
Give it a try and post again if you run into trouble.
-sam
In Section
Seekers of Perl Wisdom