in reply to Re: Re: Connecting to irc using perl
in thread Connecting to irc using perl

i added two lines and it works for me...

use Net::IRC; $irc = new Net::IRC; $conn = $irc->newconn( Nick => 'Nikos', Server => 'nini.irc.gr', Port => 6667, Ircname => 'me'); $conn->add_global_handler('376', \&on_connect); $irc->start; sub on_connect { print STDERR "connected\n"; }

which when run gives me...


$ perl irc.pl 
connected
^C
$

so the answer is yes, there are modules to help you connect to IRC and no, they will not help you connect anonymously, nor will they let you connect if your IP has been banned for some reason or another.