./new_user.pl -n Bob -l Smithuse strict; use warnings; use Getopt::Std; use vars qw($opt_n $opt_l); getopts("n:l:"); print "Option -n: $opt_n \n"; print "Option -l: $opt_l \n"; __END__
Option -n: Bob Option -l: Smith
----
Coyote
In reply to (Coyote) Re: Reading command line flags into variables...?
by Coyote
in thread Reading command line flags into variables...?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |