You are viewing the version of this documentation from Perl blead. This is the main development branch of Perl. (git commit d59aa5a5b26ed65bb57e1daad3c9b9e8015a4996)
ARGV

The special filehandle that iterates over command-line filenames in @ARGV. Usually written as the null filehandle in the diamond operator <>. Note that currently ARGV only has its magical effect within the <> operator; elsewhere it is just a plain filehandle corresponding to the last file opened by <>. In particular, passing \*ARGV as a parameter to a function that expects a filehandle may not cause your function to automatically read the contents of all the files in @ARGV.