#command line passed to the terminal > cl_args.pl myfile1.txt myfile2.txt myfile3.txt #### # cl_args.pl use strict; use warnings; @ARGV == 3 and print @ARGV; # @ARGV is an array that can be be assigned to within your script @ARGV = ( 'myfile4.txt' ); @ARGV == 1 and print @ARGV;