Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Precedence (spot the bug)

by Arguile (Hermit)
on Oct 22, 2001 at 05:16 UTC ( #120424=note: print w/replies, xml ) Need Help??


in reply to Precedence (spot the bug)

You might consider using the lower precedence "or" especially for error checking. The double pipe version is more useful for when you want to do short-circuit evaluation in conditional expressions.

opendir DIR, '/' or die "Failure opening dir /: $!";

Stylistically I find this much easier to read and you don't have to worry about precedence as 'or' and 'xor' are as low as you can get on the chart ;).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://120424]
help
Chatterbox?
Discipulus some monks here around are flammable.. or well they interact like a porcupine and an airbaloon
[beech]: yes, farting is an apt description for a lot of the irrelevant hot gas

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2017-01-20 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.