in reply to Waiting for one Sub to Exit First
First you call :
and for every host you call &connect. In the connect sub you loop again thru all the hosts:foreach (@host) { check($_, $port); }
for(@host){ $stout = run($_); unless($stout == 256) { $success++; last; }
So you probably reach your failover earlier than wanted ?
----------------------------------- --the good, the bad and the physi-- -----------------------------------
|
|---|