Try this instead:
open(P, "perl from.pl |") or die "Can't pipe from from.pl: $?\n"; while (<P>) { print $_; $count++; } close(P) or die "Can't pipe from from.pl: $?\n"; print "$count\n";
In reply to Re: Pipe Question
by chipmunk
in thread Pipe Question
by Bliss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |