[ALL] The special filehandle that iterates over command-line filenames in @ARGV. Usually written as the null filehandle in the angle operator: <>.
$ARGV
[ALL] Contains the name of the current file when reading from the ARGV handle using the <> or readline operators.
@ARGV
[ALL] The array containing the command-line arguments intended for the script. Note that $#ARGV is generally the number of arguments minus one, since $ARGV[0] is the first argument, not the command name; use scalar @ARGV for the number of program arguments. See $0 for the program name.
$ARGV跟ARGV都是跟<>钻石操作符有关系的
@ARGV保存了命令行的所有参数
比如 test.pl 1.txt 2.txt
@ARGV 为(1.txt, 2.txt)
程序里如果写 while (<>) { print "from file $ARGV get line:" , $_, "\n"; }