in reply to Re: Re: Telnet via Perl failsin thread Telnet via Perl fails
But for telnet, I'd bypass the external commands and use Net::Telnet. The relevant chapter in Lincoln Stein's book Network Programming with Perl is online.