in reply to Re: Do people find warning for undef with string compare useful?
in thread Do people find warning for undef with string compare useful?
if ($possibly_undef) { ...
The correct syntax is
Which blows up the code size and makes it less readable.if (($possibly_undef // '') eq 'Hello') { ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Do people find warning for undef with string compare useful?
by smls (Friar) on May 31, 2013 at 22:41 UTC |