in reply to Difference between piped-in and invocation arguments to a Perl script?

You have to use 'xargs' command for your requirement, for help put 'man xargs' in your shell.
if you include xargs it will work
echo "hello"|xargs perl -e 'print $ARGV[0]'
  • Comment on Re: Difference between piped-in and invocation arguments to a Perl script?