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

Re: Something interesting i found today

by Corion (Pope)
on Aug 24, 2013 at 06:50 UTC ( #1050774=note: print w/replies, xml ) Need Help??


in reply to Something interesting i found today

In Perl, the operators determine the type of their arguments. The numeric operators treat strings as numbers, and things that don't look like a number get treated as zero.

This explains all your four cases.

  • Comment on Re: Something interesting i found today

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1050774]
help
Chatterbox?
Jar. Jar!...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2017-07-22 14:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (340 votes). Check out past polls.