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?
I don't necessarily want it to act like anything (0 or empty string) -- I just want it to compare as "not equal" to something that is defined, or "equal" to something that isn't -- with the caveat, that undef == undef, is only equal in a certain context -- i.e. they are both uninitialized.
I would want it to compare different if I compared undef against 0 or the empty string, so assigning either of those other values would miss the point entirely.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Do people find warning for undef with string compare useful? (bool length)
by tye (Sage) on Jun 01, 2013 at 19:00 UTC | |
|
Re^3: Do people find warning for undef with string compare useful?
by vsespb (Chaplain) on Jun 01, 2013 at 15:19 UTC | |
|
Re^3: Do people find warning for undef with string compare useful?
by BrowserUk (Patriarch) on Jun 01, 2013 at 18:28 UTC |