Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Definition of numerically equal and rationale for 'you' == 'me'

by Eliya (Vicar)
on Mar 01, 2012 at 21:44 UTC ( [id://957330]=note: print w/replies, xml ) Need Help??


in reply to Definition of numerically equal and rationale for 'you' == 'me'

Both strings evaluate to zero in numeric context (as they cannot be parsed as numbers), and thus are numerically equal.  With warnings enabled, you'd get

$ perl -wle "print 1 if 'you' == 'me'" Argument "me" isn't numeric in numeric eq (==) at -e line 1. Argument "you" isn't numeric in numeric eq (==) at -e line 1. 1
  • Comment on Re: Definition of numerically equal and rationale for 'you' == 'me'
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-03-29 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found