in reply to Funky sorting
We needed to address nesting of string values as well as regular orderingI don't understand what you mean by this. It looks like you're just sorting on the length of the string. Replacing your big for loop with the following line produces the same output.
@v = sort {length($a) <=> length($b)} @v;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Funky sorting
by tye (Sage) on Nov 10, 2001 at 04:44 UTC | |
by blakem (Monsignor) on Nov 10, 2001 at 05:03 UTC | |
by Anonymous Monk on Nov 10, 2001 at 05:46 UTC |