The line should read >>getopts(...)<< (i.e. with an "s").
-- K. Jantzen -----Original Message----- > Date: Wed, 27 Dec 2006 03:49:01 +0100 > Subject: what's mistaken? > From: Adriano Allora <[EMAIL PROTECTED]> > To: beginners@perl.org > hi to all, > > (and a very good new year's eve). someone can tell me why this script > doesn't accept the -h flag?: > > #!/usr/bin/perl -w > > use strict; > use warnings; > use Getopt::Std; > > getopt('h'); > my $opt_h; > if($opt_h) > { > [code...] > } > > > [rest of the script...] > > > thnak you a lot, > > > alladr > > > > |^|_|^|_|^| |^|_|^|_|^| > | | | | > | | | | > | |*\_/*\_/*\_/*\_/*\_/* | | > | | > | | > | | > | http://www.e-allora.net | > | | > | | > ************************************** > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>