Now that we have learnt about lists, we can write Perl programs that accept and manipulate command line arguments. A command line argument is one that is typed after the name of the Perl program or command on the same line.
We have seen the special scalar variable $_ that Perl provides as the default input argument inside loops. $_ is also used as the default argument for many commands such as print and chomp. In addition, Perl provides a set of special list variables. One such variable is @ARGV. Perl also provides a special filehandle called ARGV. These two special variables, which have similar names, are used for writing Perl programs that can take command line arguments.