- @ARGV
-
The array
@ARGVcontains the command-line arguments intended for the script.$#ARGVis generally the number of arguments minus one, because$ARGV[0]is the first argument, not the program's command name itself. See "$0" for the command name.配列
@ARGVは、コマンドラインからスクリプトに渡す引数が入れられます。$ARGV[0]がプログラムのコマンド名自身ではなく、 最初の引数ですから、$#ARGVは一般には、引数の個数 - 1 となります。 コマンド名については、"$0" を参照してください。