Thread Werte aus Array über zwei Array vergleichen und löschen
(17 answers)
Opened by namenlos at 2014-01-21 16:42 Code (perl): (dl
)
1 2 3 4 5 my @name = ("heinz", "karl", "Peter", "Anne", "heinz", "Anne"); my @geb = ("20101920", "23011929", "02121915", "06041966","20101920", "07071977"); my %d=map{"$name[$_]|$geb[$_]" => [$_,$name[$_],$geb[$_]]}(0..$#name); @name=(); @geb=(); map{push(@name,$_->[1]);push(@geb,$_->[2]);}sort{$a->[0] <=> $b->[0]}values(%d); |