Thread map grep (9 answers)
Opened by gast at 2009-04-24 21:29

Linuxer
 2009-04-24 21:50
#120872 #120872
User since
2006-01-27
3891 Artikel
HausmeisterIn

user image
Code (perl): (dl )
my %hash2 = map { ( $_, $hash1{$k} ) } grep { m/regex/ } keys %hash1;
meine Beiträge: I.d.R. alle Angaben ohne Gewähr und auf Linux abgestimmt!
Die Sprache heisst Perl, nicht PERL. - Bitte Crossposts als solche kenntlich machen!

View full thread map grep