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

you could put your attempt to connect into an eval and catch the die

eval {$ssh->login($user, $pass)}; next if $@;

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!

Replies are listed 'Best First'.
Re^2: Net::SSH::Perl and handling dead hosts
by neilwatson (Priest) on Feb 16, 2005 at 15:34 UTC