chomp (@ID); foreach $ID(@ID){ foreach $file(@files){ print "$file" if ($file =~ /($ID)/); } } [download]
In reply to Re: Check If 2 Arrays Match by facedag in thread Check If 2 Arrays Match by facedag