On 11/13/06, Tim Wolak <[EMAIL PROTECTED]> wrote:
My second question is when I use getopt it never detects incorrect usage if you leave out an options and complains about the variable not being there instead of informing the user they missed an option.
People will tell you that's how options work. They are optional, not required. All the modules that do command line option parsing that I know of, work this way. You will need to code something on your own, like for $opt (['s', $opt_s], ['d', $opt_d], ['g', $opt_g], ['t', $opt_t]) { my ($k, $v) = @$_; die "required option $k missing" unless defined $v; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>