Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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?
[usemodperl]: greetings
[usemodperl]: question

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2018-06-19 19:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (114 votes). Check out past polls.

    Notices?