Dear monks,
I am facing some problems while trying to use the Net::IRC module. I have the folowing code
#!/usr/bin/perl
#
use Net::IRC;
#
# Create the IRC and Connection objects
#
my $irc = new Net::IRC;
print "Creating connection to IRC server...\n";
my $conn = $irc->newconn(Server => 'amsterdam.nl.eu.undernet.org',
Port => 6667,
Nick => 'PerlBot',
Ircname => 'I Only Answer to NeoFuture.',
Username => 'Neo')
or die "Can't connect to IRC server $!.\n";
$irc->start;
When I run this code it fails with can't connect to amstedam wrong file descriptor. What does that mean and how do I solve it? I intalled Net::IRC from CPAN shell and after that I also did a manual installation and bot don't complain.
Thanks Olly
Imagination is more important then knowledge -Einstein-
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.