Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
    switch (val) {
      case 1 : handle_case1; break;
    ...
      case 10: handle_case10;
      default: handle_default; 
    }
    
  2. or download this
    if (val == 1) {
      handle_case1;
    ...
    CASE10:  handle_case10;
    DEFAULT: handle_default;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://301423]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2014-09-20 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls