Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: && and and (well, you try searching for an answer)

by GrandFather (Saint)
on Sep 02, 2006 at 20:36 UTC ( [id://570889]=note: print w/replies, xml ) Need Help??


in reply to && and and (well, you try searching for an answer)

The && and || operators come from C and have the same relative precedence as they do in C. The and && or operators have been added to Perl with much lower precedence, even lower than assignment for example, which allows them to be used as statement joiners of using the Perl die idiom for example:

open ... or die ...;

The documentation for the operators can be found in the perlop man page. Note the precedence table at the start in particular.


DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2025-06-18 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.