B
Borniac
thanks,
Borniac
Borniac
thanks,
Borniac
Andreas Kahari said:if (!getopts("hn:", \%opts) || (defined(%opts{h}) && $opts{h})) {
die "Usage: $0 -h | -n name\n";
}
You know, this brings up a question that's bugged me a while.
Why should the idiom
(defined($hash{key}) && $hash{key})
be needed, really? Is it just to prevent a syntax error or undefined warning?
If so, I'd like a
no use blah_warnings;
for it. Is there one?
Borniac_1 said:thanks,
Borniac
Andreas said:use Getopt::Std;
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.