Thread arrays auf inhalt prüfen (6 answers)
Opened by Noisebreath at 2006-09-07 17:05

pq
 2006-09-18 22:37
#69579 #69579
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
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: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread arrays auf inhalt prüfen