Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 cooling their heels in the Monastery: (12)
As of 2016-06-28 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (359 votes). Check out past polls.