in reply to Re: undef == 0?
in thread undef == 0?
Perl's a weakly-typed language (almost untyped, really). Magic lurks at every nook and cranny. This stuff comes with the territory.
Quite the opposite. This "issue" is a symptom of the the very strict requirements operators place on the type of their operands. == requires numbers, so Perl converted the undefined value to a number.
Update: Added original content of parent node.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: undef == 0?
by gamache (Friar) on Oct 24, 2007 at 16:34 UTC |