![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: Net::IRC Connection times outby DigitalKitty (Parson) |
on Oct 06, 2004 at 03:54 UTC ( #396865=note: print w/replies, xml ) | Need Help?? |
Hi Anonymous Monk.
IRC servers periodically send a 'PING' to clients that haven't been active for a period of time. In order to avoid a timeout, you need to send the response it is expecting (e.g. 'PONG'). Assuming you are reading from a socket and each line read is stored in a scalar named $input:
Hope this helps, ~Katie
In Section
Seekers of Perl Wisdom
|
|