Binary "<=>" returns -1, 0, or 1 depending on whether the left argument
is numerically less than, equal to, or greater than the right argument.
If your platform supports NaNs (not-a-numbers) as numeric values, using
them with "<=>" returns undef. NaN is not "<", "==", ">", "<=" or ">="
anything (even NaN), so those 5 return false. NaN != NaN returns true,
as does NaN != anything else. If your platform doesn't support NaNs
then NaN is just a string with numeric value 0.
> Binary "<=>" returns -1, 0, or 1 depending on whether the left argument
> is numerically less than, equal to, or greater than the right argument.
> If your platform supports NaNs (not-a-numbers) as numeric values, using
> them with "<=>" returns undef. NaN is not "<", "==", ">", "<=" or ">="
> anything (even NaN), so those 5 return false. NaN != NaN returns true,
> as does NaN != anything else. If your platform doesn't support NaNs
> then NaN is just a string with numeric value 0.
FOR NUMERIC SORT WE USE "<=>"
AND FOR STRING SORT WE USE "cmp"
if we use $a<=>$b THAT MEANS WE ARE GOING TO SORT IN ascending order
$b<=>$a then THAT MEANS descending order ....
PRAVEENZX~
On Wed, Dec 24, 2008 at 7:04 PM, Remi Mustapha <rmusta...@gmail.com> wrote:
> sort $ct->{$b} to this format $ct->{$a}
> pretty much, its re-arranging the variable. i think i'm right on this
> one. it has been a while.
> On Wed, Dec 24, 2008 at 7:21 AM, Ray Yu <coffeef...@gmail.com> wrote: