eval { $loginOutput = $ssh->login(); }; if ($@) { myAuditLog(LOG,"Login has failed: $@"); }