in reply to Do people find warning for undef with string compare useful?
I find it useful. IMHO you should always check for undef and never compare undef with anything. If you expect your variable to act like 0 or empty string - just assign 0 or empty string.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Do people find warning for undef with string compare useful?
by perl-diddler (Chaplain) on Jun 01, 2013 at 14:59 UTC | |
by tye (Sage) on Jun 01, 2013 at 19:00 UTC | |
by vsespb (Chaplain) on Jun 01, 2013 at 15:19 UTC | |
by BrowserUk (Patriarch) on Jun 01, 2013 at 18:28 UTC |
In Section
Seekers of Perl Wisdom