in reply to don't die, retry
Try something more along the lines of:$sock->send($request) or die "send: $!";
Maybe throw a counter in there so it only sleeps/retries a maximum number of times.unless ($_=$sock->send($request)) { die "send: $!" unless $! =~ /unreachable/; # Or whatever sleep 1; }
|
|---|