http://qs1969.pair.com?node_id=1138185


in reply to Re^2: test version of ssh from windows
in thread test version of ssh from windows

In my reply above using eval, you can trap and then reword the errors as you see fit. Here's a short example.

eval { open my $fh, '<', 'asdf' or die $!; }; if ($@ =~ /No such file or directory/){ print "short error msg\n"; # or... die "short msg"; }