Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
choroba mornings back
[Corion]: Hi choroba!
[Corion]: And Discipulus!
Corion arrived back from London. Always nice to meet people again, even if it's just once per year.
[Corion]: Also, dk contributed some cool stuff to App::ShaderToy, like menu settings and real fullscreen, eliminating many of my #TO-DO comments ;)
[Corion]: I hope you spent the four days well without me online ;-D
[Discipulus]: more or less Corion: the monastery was so calm, maybe too much! i feared you'v lost in VR

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2016-12-06 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (101 votes). Check out past polls.