harry_ has asked for the wisdom of the Perl Monks concerning the following question:
Dear perl-coders,
Sorry if this question has been answered in the past.
I am writing a program which checks the httpd version
of random ip's (generated by the program). How can I
can I make $0 move on to next ip, if no connection got
established in a 5 sec wait?
(I am not using IO::Socket)
Sincerely yours,
Harry.
Comment on How move on to next ip if no connection got established?
The eval loop get's killed by the "die" after the alarm goes off (if it does). So just put your IP address in the list, and make doTask be the function that does your http connection.
-Henri