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

Re: Perl Idioms Explained - && and || "Short Circuit" operators

by demerphq (Chancellor)
on Oct 22, 2003 at 22:10 UTC ( #301397=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (defined $array->[1] and $array->[1] eq 'foo') {
      ...
    }
    
  2. or download this
    if (defined $array->[1]) {
      if ($array->[1] eq 'foo') {
        ...
      }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://301397]
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: (8)
As of 2014-12-25 04:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls