- ARGV
-
The special filehandle that iterates over command-line filenames in
@ARGV. Usually written as the null filehandle in the diamond operator<>. Note that currentlyARGVonly has its magical effect within the<>operator; elsewhere it is just a plain filehandle corresponding to the last file opened by<>. In particular, passing\*ARGVas 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.@ARGVにあるコマンドラインで指定されたファイル名に対して反復する 特殊ファイルハンドルです。 通常ダイヤモンド演算子<>の中で空ファイルハンドルとして書かれます。 現在のところ、ARGVは<>演算子の中でのみ特別な効果があることに 注意してください; その他の場所では、<>で開かれた最後のファイルに 対応する普通のファイルハンドルです。 特に、ファイルハンドルを想定している関数に\*ARGVを引数として渡しても、 関数内で@ARGVにある全てのファイルの内容を自動的に読み込むことには なりません。