hmmm, this is covered rather in-depth in "Network Programing with Perl" by Lincold Stein. The problem is usually that you read using somthing similar to <code lang="perl"><SOCKET></code>, which only read one line, and the rest is queued. Usually the way around this is to use un-buffered reads. (see
Super Search for node on the subject). Without seeing code, not much else i can say.
Update : Thinking, if
Net::Telnet is used, you really don't have control over buffering. Are you using <code lang="perl">$telnet->cmd()</code> ? If so, are you asking it to return and array or a scalar ?
i had a memory leak once, and it ruined my favorite shirt.