i have a script

##### perl script ######
#!e:\perl\bin\perl

  use Net::IRC;

  my $irc = new Net::IRC;

  my $conn = $irc->newconn(Nick => 'GH-[bot]',
                           Server   => 'some.server.com',
                           Port     => 6668);


  $self->add_global_handler('376', \&on_connect);     # global

  $self->add_handler('msg', \&on_msg);                # local

 # What to do when the bot successfully connects.
    sub on_connect {
        $self = shift;


        print "Joining #chat...";
        $self->join("#chat");
        $self->privmsg("#chat", "Hi there.");
    }

$irc->start;

##### end perl script ######

and when i run it i get this error

Can't connect to some.server.com:6668! at E:/Perl/site/lib/Net/IRC.pm line
192


can someone explain where i've gone wrong ??

" using active perl 5.61 on win2kpro "

[----------------------]
     Kris G Findlay
 [EMAIL PROTECTED]
[----------------------]

Reply via email to