Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: confused: string and number comparison

by nikosv (Chaplain)
on Mar 23, 2011 at 19:11 UTC ( #895089=note: print w/replies, xml ) Need Help??


in reply to confused: string and number comparison

smart match :

use 5.010001; if ('abcd' ~~ 0) #prints equal if (0 ~~ 'abcd') #prints different

Since 5.010001 the smart match operator cares about the order of the operands.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://895089]
help
Chatterbox?
[marto]: it makes things less stressful for the parents that's for sure :P
[Corion]: Yeah (although their mother was somewhat stressed out regardless) - but it made for an otherwise relaxed evening ;)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2016-12-08 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (139 votes). Check out past polls.