1

how to timeout and proceed in perl

view story
linux-howto

http://www.unix.com – I'm writing a small socket program (UDP) to communicate between two servers. Problem is, I dont know how to implement time out hence my script keeps on waiting for the peer response. Code: #!/usr/bin/bash use IO::Socket::INET; $|=1; $socket=new IO::Socket::INET->new(LocalPort=>5001,                                                     Proto=>'udp',                           &nbs (HowTos)