As opposed to the more common variation of:if ($teststring ne '') { ...
My reasoning, up this point, has been that it's less work for the perl engine to compare against a(n almost) literal of '' then have to go through the parse cycle and then compare for a "".if ($teststring ne "") { ...
|
---|
Replies are listed 'Best First'. | |
---|---|
(tye)Re: A better non-existant string...
by tye (Sage) on Jan 23, 2001 at 04:24 UTC | |
by spaz (Pilgrim) on Jan 23, 2001 at 06:42 UTC | |
by tye (Sage) on Jan 23, 2001 at 11:44 UTC | |
Re: A better non-existant string...
by extremely (Priest) on Jan 23, 2001 at 06:43 UTC | |
by lzcd (Pilgrim) on Jan 23, 2001 at 06:50 UTC | |
Re: A better non-existant string...
by Adam (Vicar) on Jan 23, 2001 at 03:36 UTC | |
Re: A better non-existant string...
by chromatic (Archbishop) on Jan 24, 2001 at 05:09 UTC |