$ ( echo Hi; sleep 3; echo Bye ) | ./ReadAPipe.pl a b c This was read from the pipe: This was the read from the parameters: ./ReadAPipe.pl a b c This was read from the pipe: <> This was the read from the parameters: