http://www.perlmonks.org?node_id=407547


in reply to Re: Finding the max()/min()
in thread Finding the max()/min()

The nitpick is perfectly valid... I almost made a note of it. Of course, it would be possible (though silly) to implement an abs function without a comparison, such as sub abs { sqrt($_[0]**2) }.

There's probably some mathematical identity for the abs of the difference of two numbers... but I didn't get enough sleep last night to think about what it might be :-)

------------ :Wq Not an editor command: Wq