![]() |
|
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?? |
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:
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
In Section
Seekers of Perl Wisdom
|
|