in reply to Perl chat server?

I'd suggest looking at geektalkd which is a perl version of chatd. It has a very small footprint (19k) and clients are simple to write for it (the simplest of which doesn't need to be more than a couple hundred bytes).