in reply to Re: Sort problems
in thread Sort problems
More robust:
my @new_list = map { $_->[0] } sort { $a->[1] cmp $b->[1] } map { ( my $s = $_ ) =~ s/(\d+)/0$1/g; [ $_, $s ] } @split_list;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Sort problems
by erez_ez (Acolyte) on Dec 11, 2008 at 16:19 UTC | |
by ikegami (Patriarch) on Dec 11, 2008 at 17:20 UTC | |
by erez_ez (Acolyte) on Dec 23, 2008 at 13:39 UTC | |
by ikegami (Patriarch) on Dec 23, 2008 at 18:03 UTC | |
by erez_ez (Acolyte) on Dec 24, 2008 at 08:55 UTC | |
|