in reply to Perl to Add newline at the end of each row of comma seperated strings in an array ?

By any chance, are you running this script on a Unix- or Linux-flavored system, but examining the file on a Windows system? It could explain seeing it fine on the source machine but not on the destination machine.

If so, a variety of newline conversion approaches might get you through this.

  • Comment on Re: Perl to Add newline at the end of each row of comma seperated strings in an array ?