pmc ( http://sourceforge.net/projects/perlmudclient/ ) was an attempt to do just that. I spent part of last week on this; it uses an old modified version of Net :: Telnet to do its connection work.
My problem is that Net :: Telnet seems to have a blocking interface when a partial line is sent by the server, i.e. a line that is not interrupted by a new line. It supports two functions that support this (waitfor and its request mechanism), since almost all telnet servers have prompts that are not completed with a new line.
MUDs often have โhintsโ that are non-standard and change throughout the game; MUD I admin on has the โYour Choice:โ prompt as its login [this is not just for usernames], and many of the gameโs functions contain alternative hints. Therefore, I suspect you need to keep this in mind when you are looking for the cross-platform Telnet library!
source share