in reply to Search strings stored in array into files of a directory
I would add not to rely on $_ except in very limited contexts. Use an explicitly named variable. The value of $_ could change on you unexpectedly.