cgumudavelly has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have a problem in identifying a word in a log file and immediately i need to email that error to some email address. Can some one help me in this regard ??
The log file gets generated daily and i need to search for an error message as "Uncaught Run time exception error" and immediately i need to send this error message to some email addresses.
Comment on How to find out a text word from the log file and email it
Opening and reading files is described in perlsyn, you can search for patterns in strings with regular expressions, and mails can be composed for example with MIME::Lite.