@ARGV = ($script);
@ARGV
array to contain
only the script filename. Whatever value it had before is lost.
The parenthese around $script
are optional in this case,
but make the statement look more like an array assignment.Recall:
@ARGV
is the script name,
because it'll be used as a list of command input filenames.
$script
contains the name of
the script file.