Read perlop. The <=> operator is the operator for comparing numbers. Use the cmp operator for comparing strings.
In reply to Re: Sorting an array of hashes
by Corion
in thread Sorting an array of hashes
by madhurjf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |