|
|
| We don't bite newbies here... much | |
| 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?? |
|
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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||