while (defined($ARGV[0])) { my $opt = shift; if($opt eq '-f') { my ($username, $domain) = split(/@/, shift); } else { die("Usage: <username\@domain>\n"); }a }
In reply to Re: Validating command-line _parameters_ (not options)
by Anonymous Monk
in thread Validating command-line _parameters_ (not options)
by dserodio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |