my $result = eval { $object->method() }; if($@) { $log->error("Something's gone wrong when called $object->method(): $@"); # ...doing something with that... } # ...doing something else, understanding that the method just doesn't have anything to pass to us...