in reply to Finding the hypotenuse of a right triangle!
It's a good idea to avoid using variables $a and $b, as they have special meaning for sort.