in reply to Re^4: Net::SCP::Expect Error Handling
in thread Net::SCP::Expect Error Handling

yes, the closing parenthesis for the unless condition was missing.