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


in reply to Facing Problem with Perl Expect, if the command length is slightly longer is splitting into 2-3 lines with garbage

default terminal line-length problem

I don't really understand how you got that mangled line in your log but you could try to have the session match your local line-length with:

$exp->slave->clone_winsize_from(\*STDIN);

If that doesn't work, try sending a direct command like: stty columns 144