Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: (jeffa) 2Re: (Ovid - Why I love nested If-Else blocks)

by dws (Chancellor)
on Jan 04, 2002 at 03:58 UTC ( #136151=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $func = ($foo > 7) ?
         $bar && \&bar_mysub
      || $baz && \&baz_mysub
      :  $bar && \&bar_other_mysub
      || $baz && \&baz_other_mysub;
    $func->($foo) if $func;
    
  2. or download this
      ||
      :
      ||
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2016-06-26 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (330 votes). Check out past polls.