Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: undef == 0?

by ikegami (Patriarch)
on Oct 24, 2007 at 16:31 UTC ( [id://646933]=note: print w/replies, xml ) Need Help??


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
    Is it wrong that I wait wistfully for your corrections? The word I was looking for was "dynamic", not "weak"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://646933]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2024-04-23 21:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found