Thread sortieren: aufwändiges sortieren
(20 answers)
Opened by Froschpopo at 2005-02-25 03:27
[quote=kabel,25.02.2005, 07:29]
Code (perl): (dl
)
1 2 3 4 5 6 7 my @sorted= map { $_->[1] } sort { $a->[0] <=> $b->[0] } map { [substr ($_, 5, 10), $_] } @array; [/quote] :) kann mir mal jemand den code für doofe erklären? :)\n\n <!--EDIT|vayu|1109337217--> "imitation is the sincerest form of flattery."
- Lee Anthony Iacocca http://img156.imageshack.us/img156/2056/perluserba... http://img410.imageshack.us/img410/2664/tcmduserba... |