in reply to Re: 0==undef, that's annoying. Is it?
in thread 0==undef, that's annoying. Is it?
These work, but I don't like either of them (i'm being a bit too perfectionist there).
The first one is not clear, it's a lot too complex to read, for such a simple assertion. The second one is exactly equivalent to my
assertion, but just harder to read.is($score, 0)
returns 0, whileis('1','1.0')
is true.cmp(1, '==', 1.0)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: 0==undef, that's annoying. Is it?
by AnomalousMonk (Archbishop) on Jul 15, 2012 at 23:11 UTC | |
|
Re^3: 0==undef, that's annoying. Is it?
by Anonymous Monk on Jul 15, 2012 at 23:33 UTC |