Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: || vs or

by mickeyn (Priest)
on May 16, 2007 at 06:51 UTC ( #615703=note: print w/ replies, xml ) Need Help??


in reply to || vs or

the two operators have different precedence ...

'or' has lower precedence than ||, and it usually becomes an issue when comma is involved (lower precedence than ||, higher than 'or')

please read perldoc perlop.

Mickey


Comment on Re: || vs or

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://615703]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2015-07-07 22:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls