in reply to Ignoring errors

Likely by wrapping the offending call in an eval block:

my $unzip; my $ok = eval { $unzip = Archive::Zip->new($zipfile); 1; }; if( ! $ok ) { $logger->info(":-( $@"); };

Also see Try::Tiny.

Replies are listed 'Best First'.
Re^2: Ignoring errors
by roperl (Beadle) on Aug 28, 2017 at 15:44 UTC
    Tried that with eval, this logging the error