Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
Perl: the Markov chain saw
 
PerlMonks  

Re: Burned by precedence rules

by JavaFan (Canon)
on Dec 23, 2008 at 14:15 UTC ( #732295=note: print w/ replies, xml ) Need Help??


in reply to Burned by precedence rules

I use all of and, &&, or, ||, ! and not. I don't find it hard to remember that the old, punctuation ones are "high" precedence (just as in C), and the newer English ones are "low" precedence.

Given two operators, most of the time I know which one has a higher precedence, certainly for operator combinations I use more frequently. But sometimes, I'm not sure. If I'm not sure, I use parenthesis. Or sometimes, I use -MO=Deparse,-p to find out.


Comment on Re: Burned by precedence rules

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (23)
As of 2014-04-17 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (453 votes), past polls