instead of accessing the $opt_h from the namespace of Getopt that way do this: see inline
> -----Original Message----- > From: Mike Singleton [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 06, 2002 11:17 AM > To: [EMAIL PROTECTED] > Subject: stumped on error... > > > Name "Getopt::Std::opt_h" used only once: possible typo. > > === Partial Script == > use strict; > use English; > use Getopt::Std; > use Cwd; > my $RPTFILE="jobrpt.tmp"; our ($opt_h, $opt_n, $opt_p, $opt_o, $opt_s); > getopts('hn:p:o:s:') or die ; > ($Getopt::Std::opt_h) and die; #change above to $opt_h and die; ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]