... for my $filename (@file) { next unless $filename =~ /^\d+/; if(grep { %seen{$_} =~ $filename} keys %seen) { print " $filename\n"; } else { print "$filename is not in array\n"; } }
In reply to Re^2: Compare two arrays
by Anonymous Monk
in thread Compare two arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |