in reply to Passing parameters to Perl Script

You can use xargs to turn STDIN into command line arguments:
echo one two | xargs PERLSCRIPT
is the same as
PERLSCRIPT one two