Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Preventing disconnections of an IRC Bot made with Net::IRC

by DaWolf (Curate)
on Dec 07, 2003 at 08:52 UTC ( [id://312884]=note: print w/replies, xml ) Need Help??


in reply to Re: Preventing disconnections of an IRC Bot made with Net::IRC
in thread Preventing disconnections of an IRC Bot made with Net::IRC

So, if I've understood you correctly I should use:
if (eof($irc)) { &on_disconnect; }
or
if (!fileno($irc)) { &on_disconnect; }
Is that correct?

my ($author_nickname, $author_email) = ("DaWolf","erabbott\@terra.com.br") if ($author_name eq "Er Galvão Abbott");

Replies are listed 'Best First'.
Re: Re: Re: Preventing disconnections of an IRC Bot made with Net::IRC
by Anonymous Monk on Dec 07, 2003 at 10:14 UTC
    Is $irc a socket?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://312884]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-25 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found