more useful options | |
PerlMonks |
Re: equivalent to prove?by samtregar (Abbot) |
on Jan 29, 2009 at 22:15 UTC ( [id://740049]=note: print w/replies, xml ) | Need Help?? |
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:
Give it a try and post again if you run into trouble. -sam
In Section
Seekers of Perl Wisdom
|
|