in reply to Re: Re: Re: Structure is more important than speed
in thread Which way is faster?
D'oh. Thinko causing typoing. Make the obvious fix and the comment remains true.
I don't see an "obvious" fix that will make
work likeif (defined(my $foo = exists $hash{$key})) { # ... }
if (exists $hash{$key}) { my $foo = $hash{$key}; # ... }
I guess that's either because there isn't one or because I'm not enlightened. Would you enlighten me?
Before you answer: Please notice that exists $hash{$key}; is not equivalent to defined $hash{$key};.
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Structure is more important than speed
by Anonymous Monk on Sep 10, 2002 at 03:19 UTC |