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

In addition to the replies above, see Perl Documentation on I/O Operators, which explains what <> is, and how it relates to @ARGV and STDIN.