in reply to Re: sorting an array with mixed elements...
in thread sorting an array with mixed elements...
...when each element starts with an alphabetic character, and an alphabetic sort is desired (targeting each element's initial alpha character) this would,presumably, then become:print "Sorted table...\n\n"; { no warnings 'numeric'; print sort { $a <=> $b } @table; }
Is a "no warnings" statement also warranted?print "Sorted table...\n\n"; { # no warnings 'numeric'; print sort { $a cmp $b } @table; }
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: sorting an array with mixed elements...
by blazar (Canon) on Jun 10, 2007 at 21:27 UTC | |
by cgmd (Beadle) on Jun 10, 2007 at 22:22 UTC |