log errors from Perl