Help for this page

Select Code to Download


  1. or download this
    use strict;
    package ComplexCalculation;
    ...
      return 4 + 8 * 15 / 16 - 23 * 42;
    }
    1;
    
  2. or download this
    $variable1 = ComplexCalculation::do_calc();
    
  3. or download this
    use ComplexCalculation;
    
  4. or download this
    use lib '/some/path/to/the/calc/module';
    
  5. or download this
    sub do_calc {
      my $v1 = ##... something
    ...
      my $v3 = ##... a third thing
      return $v1, $v2, $v3
    }
    
  6. or download this
    my ($r1, $r2, $r3) = ComplexCalculation::do_calc()
    
  7. or download this
    my ($weight, undef, $depth) = ComplexCalculation::do_calc()