http://www.perlmonks.org?node_id=495909


in reply to Re: Pls help optomize - ksh version 60% faster!
in thread Pls help optomize - ksh version 60% faster!

why not simply: if (not $entry)

Because that would also be false for "0".

if ($entry eq "")
(as you mentioned) works, and so does
if (not length $entry)
(my usual) and
unless (length $entry)

Replies are listed 'Best First'.
Re^3: Pls help optomize - ksh version 60% faster!
by coreolyn (Parson) on Sep 28, 2005 at 21:58 UTC

    Actually I had those that way originally.. there was a $entry that passing the if. What's left was my attempts at finding that problem. I could now revert them back.