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 ./myscript.pl -h, it prints usage fine. However, if I call the script using ./myscript.pl -n -h, the -h flag gets ignored, and my hash looks like: DB<1> x %OPT 0 'n' 1 '-h' DB<2> What am I missing? Thanks, Chris -- [EMAIL PROTECTED] GnuPG Fingerprint: F96E FB68 5C8F 97CF 70B7 9208 0BF0 7F09 BC1B F0C8 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]