in reply to unix2dos command

When you create your report files, open them with the :crlf layer:
open my $report_fh, ">:crlf", "report.csv" or die "Couldn't open rep +ort.csv: $!";
or use binmode FH, ":crlf"; on the filehandle before you write to it.

Replies are listed 'Best First'.
Re^2: unix2dos command
by kmsripada (Initiate) on Jan 24, 2006 at 08:06 UTC
    hi thanks to all of you for your suggestions
    martin.. i will remember to post with code next time
    thanks for your suggestion ysth
    open file in :crlf mode works.. i need not run unix2dos command on files where this perl program is creating
    for other files which this program pull from other sources ... i am still using unix2dos command before zipping and then moving to windows environment
    thanks
    krishna