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