in reply to Re: [Study]: Searching for square roots
in thread [Study]: Searching for square roots

If I were writing the middle subroutine, I wouldn't copy the values into other variables before use:

sub middle { return ($_[0] + $_[1]) / 2; }

But that's probably just me.

Replies are listed 'Best First'.
Re^3: [Study]: Searching for square roots
by blazar (Canon) on Nov 15, 2006 at 09:39 UTC

    Indeed: YAWTDI!