http://qs321.pair.com?node_id=76122


in reply to Capturing input from pipe?

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 <>;