In script.pl -y goodbye | script.pl -x, the effect of the "|" in the shell command is to provide the STDOUT of the first script as the STDIN of the second script, just as if you'd written:
script.pl -y goodbye >tempfile script.pl -x <tempfile
So for this case you don't need to know anything about pipes and IPC, just read from STDIN.
In reply to Re: checking for piped input data
by hv
in thread checking for piped input data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |