carterb has asked for the wisdom of the Perl Monks concerning the following question:

I downloaded the latest PM from cpan and installed in onto Mandrake 8.0 running Perl 5.6.0 I did the Makefile.pl, etc and the make test... Now, I can not run the test file given to me, nor can I run any script I write from scratch.. Either way, I get the same error: can't connect to irc.XXXX.XXXX:6667! at /usr/lib/perl5/site_perl/5.6.0/Net/IRC.pm line 192 So from this error, I'm assuming there's something wrong with the pm? Has anyone else run into this type of problem and is there an easy way to get this to work? Thanks Carter

Replies are listed 'Best First'.
Re: Need help with Net::IRC
by Fletch (Bishop) on Apr 16, 2002 at 01:34 UTC

    • That error is because it can't establish a socket connection to that host. Make sure that the name resolves correctly from that machine outside of your program and that you can connect with something else.
    • Net::IRC is deprecated and not being actively supported (people keep stepping up to un-deprecate it again and again, but last I'd heard it was back unsupported). POE::Component::IRC is actively being developed, actively supported, and uses POE (and hence, cool).
Re: Need help with Net::IRC
by JayBonci (Curate) on Apr 16, 2002 at 11:33 UTC
    Try using irc.slashnet.org. I know for a fact that it works there. I've written a bot using Net::IRC (using it in #everything there) so I can vouch for the modules workability as well. It's probably a connection issue, but I hope that helps you.

        --jb
Re: Need help with Net::IRC
by Bhodi (Initiate) on Dec 17, 2003 at 16:30 UTC
    Are you running some sort of firewall? I had the same kind of problem when it tried to run the net::irc testscript on openbsd. When trying to run the exact same script on windows, my firewall went off because of Perl wanting to establish an connection, after permitting that it passed this error but produced another :) Now it says: "Undefined subroutine &Net::IRC::time called at blabla/Perl/site/lib/Net/IRC.pm line 127" Anyone have a clou? gr, Bhodi