Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 meditating upon the Monastery: (7)
As of 2014-07-30 02:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls