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