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


in reply to wierd output

This looks like broken terminal settings, options [-]icrnl, [-]igncr [-]inlcr [-]ocrnl, [-]onlcr, [-]onlret or [-]onocr (I'm not sure which one).
Sorry if my advice was wrong.