A pipe passes the output of one command to the input of another. So, to read the output of your echo command, read from STDIN. An example myscript.pl might be:
#!/usr/bin/perl print <>;
In reply to Re: Capturing input from pipe?
by tomhukins
in thread Capturing input from pipe?
by lowlife
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |