Thread arrays auf inhalt prüfen
(6 answers)
Opened by Noisebreath at 2006-09-07 17:05
my %hash;
$hash{$_}++ for @a1, @a2; my @gleich = grep { $hash{$_} > 1 } keys %hash; ansonsten darfst du gerne auch mal die doku lesen. ähnliche problemstellung wie diese sind in den faqs schon beantwortet. Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wie frage ich & perlintro brian's Leitfaden für jedes Perl-Problem |