in reply to Plz help me to create a perl script to catch errors and exceptions
You'd want something like:
use warnings; use strict; while (<>) { print if /ERROR|EXCEPTION/i; } [download]
myscript.pl /var/log/*log >errors.log [download]