in reply to Re^3: Compare two arrays
in thread Compare two arrays
Why would it only work using "quotemeta"? I even removed the... for my $filename (@file) { #next unless $filename =~ /^\d+/; #if(grep { $seen{$_} =~ $filename} keys %seen) { # Failed #if(grep { $filename =~ $seen{$_} } keys %seen) { # Failed if(grep { $filename =~ /\Q$_/ } keys %seen) { print " YES - $filename\n"; } else { print " NO - $filename\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Compare two arrays
by Eily (Monsignor) on Oct 01, 2014 at 22:26 UTC |