|Perl: the Markov chain saw|
Re: problem while searching for a pattern in a fileby kiruthika.bkite (Scribe)
|on Mar 24, 2010 at 08:18 UTC||Need Help??|
I have executed your program in my system.It sent the mail only if the pattern get matched.
I have tested your code with the following input.
contents of results.txt
This is testing
In this case mail didn't send.
This condition will match the pattern other than "hello".
So when newline is encountered this condition will get true.(\n!="hello").
So in this case also mail will send.