in reply to Net::Telnet: how to detect an empty line...

Hi,
probably you can use a empty line has a prompt in the Net::Telnet
$t = new Net::Telnet (Prompt => ’/^$/’);

But, if you have empty lines in the command output, you'll get a truncated output. In that case you can use the waitfor method.

And to better understand the interaction between the client e server, use the input_log and the dump_log, it's a great tool for debug.