Thread mehrere Fragen u.a. zum topic array²hash
(10 answers)
Opened by Gast at 2007-10-04 10:51 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 my @array = ( 'a39e432b46dd245ab73ff64fc65b17497ec9ae3d date', 'a39e432b46dd245ab73ff64fc6asdfijijsdkksdjfks date2', 'a39e432b46dd245ab73ff64fc6asdfijijsdkksdjfks date3', ); my %hash = map{ reverse split / /, $_ }@array; for my $date ( sort keys %hash ){ print $date,"\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/ |