Help for this page

Select Code to Download


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