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.
In reply to Re: Perl to Add newline at the end of each row of comma seperated strings in an array ?
by marinersk
in thread Perl to Add newline at the end of each row of comma seperated strings in an array ?
by john.tm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |