Help for this page

Select Code to Download


  1. or download this
    &spl($total) if ($len != 1);
    
  2. or download this
    $total = &spl($total) if ($len != 1);
    
  3. or download this
    sub spl {
       my ($num1) = @_;    
    ...
          $num1 = $total;
       }
    }
    
  4. or download this
    sub spl {
       my ($n) = @_;    
    ...
       }
       return $n;
    }
    
  5. or download this
    use List::Util qw( sum );
    
    ...
       }
       return $n;
    }