... next if grep { /$file/ } @array_code; # not working