in reply to Re^2: sorting an array with mixed elements...
in thread sorting an array with mixed elements...
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: sorting an array with mixed elements...
by cgmd (Beadle) on Jun 10, 2007 at 22:22 UTC |