in reply to Re: grep function does not recognize stringin thread grep function does not recognize string
do not omit or die after open.
Unless you add use autodie;