in reply to strange behavior of Net::SSH::Expect
Try using one of the following modules instead: Net::SSH2, Net::OpenSSH or Net::SSH::Perl.