Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: check if 2 values are equal

by Happy-the-monk (Monsignor)
on Jan 24, 2006 at 19:38 UTC ( #525299=note: print w/ replies, xml ) Need Help??


in reply to Re^2: check if 2 values are equal
in thread check if 2 values are equal

I think you can do away with the third condition of ($val1 == $val2).

Tricky one. I thought the same at first.
But think of 0 and 0.0 or 0E0 - all numerically equal, but not sting equal.
Same goes for 1.1 and 1.10 and of course, there's more to think about.

Cheers, Sören


Comment on Re^3: check if 2 values are equal

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-07-26 19:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (178 votes), past polls