in reply to Sending to and receiving from Telnet
Out of curiousity, though, if I had to do it some other way, is this possible? For example, could I open "telnet $address $port" as a filehandle and write and read from it? How would this (or something close to it) be done?