Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by demerphq (Chancellor)
on Oct 22, 2003 at 23:30 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://301423]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-03-28 16:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found