in reply to Net::SSH::Perl and handling dead hosts

You could also try to use the Expect module to cope with unreliable input. There's a good tutorial on how to use it in the tutorials section.
  • Comment on Re: Net::SSH::Perl and handling dead hosts