I open a pipe from one Perl program to another like so
open (PROG, "|$HOME/server/bin/prog.pl")||die "Cannot open $HOME/server/bin/prog.pl"
And then I print anywhere from 1 million to 2.5 million lines of data like so
foreach $line (@array){ print PROG "$line\n"; }
But I just made some modifications to prog.pl which necessitates passing data back to the calling script. What can I do (Can I read from the pipe, or is there another way I can get data passed back)?
Thank you so much!
me
In reply to pipes and return data by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |