in reply to Socket.pm returning Protocol not supported
DB<66> x $type 0 'SOCK_STREAM'
You've apparently specified the socket type as a string, rather than the expected constant. Import the SOCK_STREAM constant from IO::Socket::INET, or better yet just don't specify it. IO::Socket::INET is smart enough to guess the socket type based on the protocol.
However, this is largely a guess, given you haven't shown your code. In the future it'd be far more helpful to show the actual code having the problem, rather than a debug trace of a core module.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Socket.pm returning Protocol not supported
by gokuraku (Monk) on Nov 13, 2007 at 12:46 UTC | |
by Somni (Friar) on Nov 14, 2007 at 02:19 UTC |