chitownclone
Programmer
I am writing data to a file using the following:
open (DATA, ">>../cgi-bin/data/marketinfo.dat");
print DATA "$variable1\~$variable2 \n";
close (DATA);
It worked just fine on my server, but when I uploaded it to my client's server the \n doesn't work.
Rather than starting a new line for each new line of data the \n is writing as a square which separates each line. So rather than a formated data file I have a file with 1 line with data lines separted by a square.
Anyone have any idea why \n isn't working??
open (DATA, ">>../cgi-bin/data/marketinfo.dat");
print DATA "$variable1\~$variable2 \n";
close (DATA);
It worked just fine on my server, but when I uploaded it to my client's server the \n doesn't work.
Rather than starting a new line for each new line of data the \n is writing as a square which separates each line. So rather than a formated data file I have a file with 1 line with data lines separted by a square.
Anyone have any idea why \n isn't working??