It is opening a pipe to read the output of the unix cat command followed by the parameters passed on the command line, joined by a space. So if you do myscript foo bar, it will read the output from the unix-like command cat foo bar and process it.
Be aware that this is not the best way to do this. If I were to pass the following arguments /dev/null; echo rm -rf /; echo Gotcha! (but properly quoted and removing the first echo), your application would do much more than you wanted it to do. It would run the set of unix commands cat /dev/null; echo rm -rf /; echo Gotcha and give you the output from that (again, remove the echo from the rm command).
--MidLifeXis
In reply to Re: First post, file handle question
by MidLifeXis
in thread First post, file handle question
by happyperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |