in reply to Re: Structure is more important than speed
in thread Which way is faster?
If you throw away warnings you can double speed withinstead ofif (defined(my $foo = exists $lookup{$bar})) { .... }if (exists $lookup{$bar}) { my $foo = $lookup{$bar}; ... }
Maybe you can, but it hardly matters as they do two entirely different things. The first sets $foo to either 1 or "" (either of which is always defined.)
-sauoq "My two cents aren't worth a dime.";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Structure is more important than speed
by Anonymous Monk on Sep 09, 2002 at 23:46 UTC | |
by sauoq (Abbot) on Sep 09, 2002 at 23:58 UTC | |
by Anonymous Monk on Sep 10, 2002 at 03:19 UTC |