Thread hash sortieren (6 answers)
Opened by Froschpopo at 2007-03-20 18:06

renee
 2007-03-20 18:25
#75182 #75182
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
was soll $hash->[1] sein? Meinst Du vielleicht das hier:
Code: (dl )
1
2
3
4
5
my %hash = (nummer => ['bla', 3], test => ['bla', 1] );

for my $key( sort{$hash{$a}->[1] <=> $hash{$b}->[1]}keys %hash ){
print $key,"\n";
}
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 hash sortieren