Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: comparison of character

by MidLifeXis (Monsignor)
on Jul 16, 2013 at 13:03 UTC ( #1044592=note: print w/ replies, xml ) Need Help??


in reply to Re: comparison of character
in thread comparison of character

No. According to perlop, eq has a higher precedence than || and or, so, in this case, either one will do the same thing.

I tend to use || for logical tests (X || Y) and or for flow control (STMT or die...).

Update: clarified word choice a bit.

--MidLifeXis


Comment on Re^2: comparison of character
Select or Download Code
Replies are listed 'Best First'.
Re^3: comparison of character
by Anonymous Monk on Jul 16, 2013 at 13:37 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-08-03 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (26 votes), past polls