sub LOGifError { my ($o, $what, $err) = @_; $o->LOG('error', "$what: $error") if $error; } #### $o->LOGifError($tree, $@); #### if ($@) { $o->LOG('error', "$tree: $@"); } #### $o->LOG('error', "$tree: $@") if $@;
## $o->LOGifError($tree, $@); ##
## if ($@) { $o->LOG('error', "$tree: $@"); } ##
## $o->LOG('error', "$tree: $@") if $@;