Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: A matter of style: how to perform a simple action based on a simple condition?

by Tux (Monsignor)
on Sep 26, 2010 at 10:32 UTC ( #862067=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $expr1 && $expr2 and action ();
    $expr1 || $expr2 or  action ();
    
  2. or download this
    if ($expr1 && $expr2 or $expr3 && ($expr4 || $expr5)) {
        action1 ();
        action2 ();
        }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2015-07-05 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls