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


in reply to Re^3: print last array element without a new line
in thread print last array element without a new line

Thank you kindly! That was it. One of my files was from a distinct source (CSV export from Apple Numbers) and hence had a different line separator. Changing the local definition of $/ fixed the problem. Thanks so much for your help!