> dan radom <[EMAIL PROTECTED]> said:
> I'm having a problem with Getopt. If I pass the -p option the script uses the proxy
>as it should. If i pass it -p -o it ignores the unless (exists($args{o})) and writes
>to $outfile anyway. Any idea why it's doing that?
You want to use getopts() and not getopt(). getopt() assumes each switch
takes an argument. getopts() let's you specify which switches are just
boolean flags.
--
Smoot Carl-Mitchell
Consultant
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]