Re: use Getopt::Std question

2001-07-27 Thread Michael Fowler
On Thu, Jul 26, 2001 at 09:32:41PM -0700, Bob Bondi wrote: > Question: Is there a way to capture the case of bad flags? Getopt::Std already emits error messages when it encounters a flag it's not configured to deal with. You could try setting up a $SIG{__WARN__} handler. If Getopt::Std is using

use Getopt::Std question

2001-07-26 Thread Bob Bondi
I really like this set of functions, very handy indeed. I've done this: my %opts = (); getopt('psuctfh', \%opts);#proxy serviceport url testclass testcase filename my $proxy = $opts{p}; my $serviceport = $opts{s}; my $thisurl = $opts{u}; my $testclass = $opts{c}; my $testcase = $opts{t}; my $this