in reply to How to use @ARGV

The array, @ARGV contains the space separated stuff that follows the command.

#!/usr/bin/perl; use strict; use warnings; #this file is: file_3.pl #command used: >perl file_3.pl -file_1 -file_2 print "$_\n" for @ARGV; __END__ C:\Projects_Perl\testing>perl file_3.pl -file_1 -file_2 -file_1 -file_2
There are modules that can parse out options like "-x" and so forth. Depending upon your shell, wild cards can be used in the command line, like: file_*

I am not sure what you want to do. Please explain further.