in reply to Sort an array using the Schwartzian transform
will do. (Or some other variation to turn the warning off).my @sorted = sort {do {no warnings 'numeric'; $a <=> $b}} @unsorted;
I wish people would stop bending their code backwards just to avoid a warning. Don't be afraid to turn warnings off in such cases.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sort an array using the Schwartzian transform
by salva (Canon) on Jan 21, 2011 at 20:35 UTC |