Thread Hash von Arrays!! Bitte Hilfe
(1 answers)
Opened by Pro_Galli at 2007-10-02 17:14 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 %hash; @array = (1212, 1216, 2112, 2111, 33154, 34458, 36339, 154, 556); for my $nr ( @array ){ push @{ $hash{length $nr} }, $nr; } for my $length ( sort keys %hash ){ print join(" ", @{ $hash{$length} }),"\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/ |