in reply to Opening a File from the Command Line

Command line arguments are passed in to the program using a special array. See @ARGV in perlvar. Or, you may play with code something like:

#cli.pl print "$_: $ARGV[$_]\n" for 0..$#ARGV;

$ perl cli.pl one two three 0: one 1: two 2: three

If you want to use a more sophisticated command line, look at Getopt::Long.