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

Gast gast
 2009-04-24 21:29
#120870 #120870
Hi!

Wie kann man soetwas mit grep oder map schreiben?

Code: (dl )
1
2
3
for my $key ( keys %hash_1 ) {
$hash_2{$key} = $hash_1{$key} if $key =~ /regex/;
}

View full thread map grep