in reply to Reading command line flags into variables...?

Though Getopt::<etc> is a better idea, the old:
use strict; my ($name, $last, $arg); while ($_ = shift ) { last unless /^-\w/; print "arg $_\n"; if ( /-n/ ) { $name = shift; } if ( /-l/ ) { $last = shift; } next if /-n|-l/; die "bad arg: $_"; } print "name $name, last $last\n";
er, or something like that. Its in the camel book though.

a