in reply to Re: Getopts and required args
in thread Getopts and required args
In other words, not having $opt_l should NOT be an error... only a NULL $opt_l. And in perl, is there a difference?if ($opt_l) { print "Option found: l\n"; print " with value: $opt_l\n"; } else { print "You must specify -l\n"; exit 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: Getopts and required args
by Shendal (Hermit) on Jun 22, 2000 at 21:26 UTC |