That way you get a fresh array each time, and you can even use defaults that depend on previous arguments:
sub integrate(&integrand, $from, $to, $step = ($to - $from) / 100) { ... }
That way you get a fresh array each time, and you can even use defaults that depend on previous arguments: