in reply to 0==undef, that's annoying. Is it?
Or:
ok( defined $score && $score==0, "score is 0", );
Or (because undef stringifies to the empty string) use string comparison:
cmp_ok( $score => eq => '0', "score is 0", );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 0==undef, that's annoying. Is it?
by mascip (Pilgrim) on Jul 15, 2012 at 22:41 UTC | |
by AnomalousMonk (Archbishop) on Jul 15, 2012 at 23:11 UTC | |
by Anonymous Monk on Jul 15, 2012 at 23:33 UTC |