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?