Getopt::Std question

2001-11-14 Thread CZachary
Hello, I've been trying to update a former coworkers perl code. But, I am new to perl. I am having trouble understanding the Getopt::Std module. I would like to add a fourth option to the code below, but I not sure how to add it and get it to work. Also I would like to know where I can find good

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