Getopt::Std issues

2002-08-02 Thread ccurtis
I'm not sure if this is a problem with Getopt::Std or if it's just me, but I'm having some issues getting this to cooperate: use Getopt::Std; my %OPT = (); getopt('dhnt:', \%OPT); and later... if (exists($OPT{'h'})) { ## print usage and exit... If I call my script with

Re: Getopt::Std issues

2002-08-02 Thread ccurtis
On Fri, Aug 02, 2002 at 01:32:52PM -0400, [EMAIL PROTECTED] wrote: I'm not sure if this is a problem with Getopt::Std or if it's just me, but I'm having some issues getting this to cooperate: use Getopt::Std; my %OPT = (); getopt('dhnt:', \%OPT); Oops, looks like I have to use getopts

Re: Getopt::Std issues

2002-08-02 Thread George Schlossnagle
you're specifying that -n takes an argument, but then passing it none, so it's interpreting the trailing -h as such, On Friday, August 2, 2002, at 01:32 PM, [EMAIL PROTECTED] wrote: I'm not sure if this is a problem with Getopt::Std or if it's just me, but I'm having some issues getting