XP is just a number | |
PerlMonks |
Re: Net::IRC does not connectby le (Friar) |
on May 02, 2001 at 23:47 UTC ( [id://77484]=note: print w/replies, xml ) | Need Help?? |
I had similar problems here, using Net::IRC version 0.7.
After digging around a little in the code, I found that in Net::IRC::Connection, in the connect() sub, Symbol.pm's "gensym" method was used to create an anonymous glob, which then was turned into a socket (the code snippets you posted, plus a few more). A little above this code, I found a commented section of code, that uses IO::Socket to create a socket. I took this code, commented out the rest, and voila - it worked. I have no idea, why the author of Net::IRC used the gensym() approach and not the IO::Socket way. Hope this helps. P.S.: In my firewall logs I found out, that when I used the original Net::IRC, the irctest scripts tried to connect to the IRC-server with a local address of 127.0.0.1 - which of course can't work.
In Section
Seekers of Perl Wisdom
|
|