Hello
For a line protocol such as IRC, I would not even use sysread. Sysread is more suitable for reading large chuncks of data. If you use sysread, you'll have to worry about splitting your data correctly, handling incomplete lines, and so forth. Just use the normal <SOCK> to get one line at a time.
And just in case you don't know about it, there is a module called Net::IRC which is ideal for making irc bots. Using it is straight forward and you wouldn't need to worry about all the rfc's ins and outs.
Hope this helps,,,
Aziz,,,
| [reply] |