I'm trying to find a way to pipe warning messages into a log file....sometimes I don't want to 'die' if errors are encountered.
Sample code:
$handle->GetNumber($recs) || die "Can't get number of EventLog records\n";
I'd like to be able to log the errors instead of 'dieing'