|Perl: the Markov chain saw|
Conversion of unix LF to DOS LF issuesby master_son (Acolyte)
|on Feb 01, 2006 at 21:39 UTC||Need Help??|
master_son has asked for the wisdom of the Perl Monks concerning the following question:
Hello monks; The following is the code that I am using to upload a *.csv file via CGI and write its contents to another *.csv file However, when the destination file is written, I get blank rows in between each record.
I am using CGI qw(:standard) and CGI::Simple CPAN modules for this
The code above contains the regex $fh =~ s/(?=\n)/\r/g; which I received earlier that is to convert UNIX or MAC CRs to DOS CRs. I was able to get it to do the work, but now it will not operate properly.
What am I doing wrong - or is there a good solution. Thank you in advance.
EDIT: Sorry - I am running the script on Windows 2003 Server (DOS) ---------------------
Keep your concentration here and now where it belongs - Qui-Gon Jinn