in reply to $ENV{TERM} and Net::Telnet

As far as I know, Net::Telnet doesn't actually talk the telnet protocol. Note that you are connecting to a non-standard prot (23 is the telnet port), and many telnet clients don't use the telnet protocol if you use them to connect to a non-standard port. (Luckely I must say, I wouldn't want my telnet client to try to negotiate to a webserver if I do telnet host 80).

I haven't heard of an available module out there that does implement the telnet protocol, but that doesn't mean there isn't one.

Abigail