Hello maxon. You wrote:
What i'm creating here is client connect to all server from listarray then back to the first element
You have not shown this loop. Without seeing that it's going to be difficult to go into specifics. However, if you do literally want to remove an element from an arbitrary position in an array, splice is the tool to use.
Note that you've declared $socket twice and $port not at all. The lack of a consistent indentation scheme does not help the readability or maintainability of this code either; you can apply one automatically with perltidy.
Good luck.
In reply to Re: Skip timeout host on IO::Socket
by hippo
in thread Skip timeout host on IO::Socket
by maxon
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |