in reply to Opening a File from the Command Line
#cli.pl print "$_: $ARGV[$_]\n" for 0..$#ARGV; [download]
$ perl cli.pl one two three 0: one 1: two 2: three [download]
If you want to use a more sophisticated command line, look at Getopt::Long.