in reply to Re: Compare two arrays
in thread Compare two arrays
... 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"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Compare two arrays
by Eily (Monsignor) on Oct 01, 2014 at 17:25 UTC | |
by Anonymous Monk on Oct 01, 2014 at 17:57 UTC | |
by Eily (Monsignor) on Oct 01, 2014 at 22:26 UTC |