Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Answer: Why are these 2 strings equal?

( #87103=categorized answer: print w/ replies, xml ) Need Help??

Q&A > strings > Why are these 2 strings equal? contributed by bikeNomad

Because when you use == the strings are converted to numbers. And both these strings equal 0 when converted to numbers. And 0 == 0.

Comment on Answer: Why are these 2 strings equal?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2015-05-06 22:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (152 votes), past polls