Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.