in reply to Re^2: perl if statement
in thread perl if statement

search for a pattern in file without opening the file

(take a look at "sub contains")