in reply to Re^4: unbuffered read from socket
in thread unbuffered read from socket

It certainly sounds like the sort of thing you'd want a generic module for. That said, in this specific case Net::IRC seems to already exist. Actually, I'll mention that in my reply node in case the OP doesn't notice this one.