in reply to How Do I Use Getopt::Long without switches?
I'd take another look at Getopt::Long if I were you, its whole purpose is to handle command line options. If you don't need options, don't use Getopt::Long.
I think it's @ARGV that you're looking for.
#pm.pl print "Arg $_: $ARGV[$_]\n" for 0 .. $#ARGV;
Sample run:
$ perl pm.pl one two three "four five" Arg 0: one Arg 1: two Arg 2: three Arg 3: four five
|
|---|