Click here to get back home

Net::IRC Woes

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Net::IRC Woes Davidhope69 02-17-2005
Get Chitika Premium
Posted by Davidhope69 on February 17, 2005, 12:02 pm
Please log in for more thread options


Hello all,

I've got a quick question about the Net:IRC module for perl, for some
strange reason it will never connect to a server (even when using the
provided examples), a message is echoed out and it continues to run but
to no avail:

-----[START]-----
Can't connect to irz.blitzed.org:6667! at
/usr/lib/perl5/vendor_perl/5.8.5/Net/IRC.pm line 203
-----[END]-----

I'm really starting to run out of ideas here, I've been using php for a
fair while and figured I'd take a quick peeek at what modules perl had
to offer so as to replace php as my langauge of choice for CLI stuff
anyway, here's the code to the most basic net:irc example which I can't
get to work:

-----[START]-----
#!/usr/bin/perl
use Net::IRC;
$irc = new Net::IRC;
$conn = $irc->newconn (
Nick => 'DaveTEST',
Server => '192.168.1.9'
);
$irc->start;
-----[END]-----

I've tried the above with perl 5.8.2 and 5.8.5, getting the same error
each time :/ - Any suggestions would be greatley appreciated.



Posted by Thomas Wittek on February 17, 2005, 11:50 pm
Please log in for more thread options


> $conn = $irc->newconn (
> Nick => 'DaveTEST',
> Server => '192.168.1.9'
> );

Are you sure that you want to connect to an IRC server in your local
area network (192.168.1.9)?

-Thomas


Posted by Davidhope69 on February 17, 2005, 3:06 pm
Please log in for more thread options


Yep, I run an ircd on one of my internal development servers. I get the
same error with every server I've tried, irc.blitzed.org, freenode,
Rizon etc etc.



Posted by Thomas Wittek on February 18, 2005, 12:49 am
Please log in for more thread options


Davidhope69@hotmail.com schrieb:
> Yep, I run an ircd on one of my internal development servers. I get the
> same error with every server I've tried, irc.blitzed.org, freenode,
> Rizon etc etc.

Hm, maybe you could try POE::Component::IRC.
I've heard a lot good of this one.

-Thomas


Posted by Davidhope69 on February 18, 2005, 10:01 am
Please log in for more thread options


Yep, I can connect perfectly. Like I said, I've tried on various hosts
to no avail. I've even tried re-compiling perl with and without
ithreads enabled.



Similar ThreadsPosted
GD.pm install woes October 29, 2004, 3:50 pm
more gcc woes attempting to install Bit-Vector February 7, 2005, 2:06 pm
Woes installing HTML::Parser using -MCPAN or by hand September 3, 2005, 2:11 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap