http://www.perlmonks.org?node_id=644505


in reply to Re^2: odd escape chars in strings obtained by SSH
in thread odd escape chars in strings obtained by SSH

This looks like it may be the shell prompt. Try setting the shell environment variable PS1='' on the remote machine.

It should work perfectly the first time! - toma