Thread SORT???? (5 answers)
Opened by Gast at 2004-05-14 15:46

renee
 2004-05-14 15:58
#82387 #82387
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
use Data::Dumper;
my @array = ();
foreach(@zeilen){
my @line = split(/\s+/,$_);
push(@array,\@line);
}

@sorted = sort{$a->[0] cmp $b->[0] or $a->[5] <=> $b->[5]} @array;

print Dumper(\@sorted);

untested
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread SORT????