Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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?
[Discipulus]: good Autumn/Fall start monks!

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2017-09-22 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (259 votes). Check out past polls.

    Notices?