in reply to Problems with IO::Select
Try printing $! after the call to can_read. select should set it.
Speaking of error checking,
$client->{socket} = IO::Socket::UNIX->new(...);
should be
$client->{socket} = IO::Socket::UNIX->new(...)
or die("Unable to open socket: $!\n");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problems with IO::Select
by dirtdart (Beadle) on Jul 02, 2006 at 18:43 UTC | |
by ikegami (Patriarch) on Jul 02, 2006 at 19:03 UTC |