http://qs321.pair.com?node_id=42389


in reply to Sending commands to a Telnet Server

You should consider using Net::Telnet.

-- Randal L. Schwartz, Perl hacker