We don't bite newbies here... much | |
PerlMonks |
Re: Passing ouput between programby perigeeV (Hermit) |
on Jul 16, 2001 at 16:00 UTC ( [id://96998]=note: print w/replies, xml ) | Need Help?? |
One way is to use open with a pipe.
open(TWO, "| /your/second/program") or die "Dead $1\n"; Now instead of printing to STDOUT, print to the filehandle you just made: print TWO "data data data\n"; In your second program that data is read in as STDIN: print while(<>);
In Section
Seekers of Perl Wisdom
|
|