in reply to Chat server impossible with Perl?
You're describing the /msg part of irc. See pircd for a perl implementation of an irc server, and (as previous people have mentioned) Net::IRC the Poe:: modules...
In Section
Seekers of Perl Wisdom