[Omaha.pm] Evolution or devolution?

Andy Lester andy at petdance.com
Thu Dec 28 14:17:20 PST 2006


On Dec 28, 2006, at 4:15 PM, Jay Hannah wrote:

>    my @common = reverse sort @rates;
>    return $common[0];

Really what you want here is $common[-1], rather than reversing to  
get the first.

--
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance






More information about the Omaha-pm mailing list