Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: 'or' vs '', '&&' vs 'and'

by Parham (Friar)
on Apr 01, 2002 at 19:11 UTC ( #155823=note: print w/replies, xml ) Need Help??


in reply to 'or' vs '', '&&' vs 'and'

i was taught to use "or" and "and" instead of || and && and was never told why. Later on i discovered what the rest of the monks have already stated. With "or" and "and" you have the advantage of including or not including parentheses whereas with "||" and "&&" they must be included.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://155823]
help
Chatterbox?
[Lady_Aleena]: atcroft, that is the goal.
[Lady_Aleena]: atcroft, this is the last of the printing modules I am going to make stop printing, I think.
[Lady_Aleena]: It will leave me with 8 out of 138 modules that print something.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2017-05-29 02:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?