Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Answer: Why are these 2 strings equal?

by bikeNomad (Priest)
on Jun 09, 2001 at 02:17 UTC ( #87103=categorized answer: print w/replies, xml ) Need Help??

Q&A > strings > Why are these 2 strings equal? - Answer 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.

Log In?

What's my password?
Create A New User
[Corion]: Yes, but I think there's not that much overlap in our audiences ;))
[1nickt]: Sheesh, I would have thought they would be satellite-linked somehow!
[1nickt]: Who's writing all the code this week, then?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2017-06-27 21:00 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (613 votes). Check out past polls.