print sort { $a cmp $b } @table;
That is the default and you'd better not specify it at all.
Is a "no warnings" statement also warranted?
No except perhaps if any element of @table is undef and you want it to be and perl not to complain. Do you?
In reply to Re^3: sorting an array with mixed elements...
by blazar
in thread sorting an array with mixed elements...
by cgmd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |