Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 studying the Monastery: (2)
As of 2016-10-01 01:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (574 votes). Check out past polls.