From: Graham B. <gb...@po...> - 2001-12-18 11:51:46
|
On Tue, Dec 18, 2001 at 12:02:48PM +0100, Nicolas CHRISTOPHE wrote: > > Hi all, > > With $host being an unreachable IP address, the following instruction does > not take into account the "timeout" option. I.e., I would like to pass to > the next line after 1 second delay, instead of it the program is waiting > for an answer very long time > > $ldap = Net::LDAP->new($host, timeout => 1); > > Configuration : Linux RedHat, perl 5.005_03 for i386 linux What version of IO do you have installed ? The latest on CPAN is 1.20, if you don't have that I suggest you install it. Graham. |