master_son has asked for the wisdom of the Perl Monks concerning the following question:
my $upload_dir = "some directory"; my $evtFileName = 'testDoc'; my $empFileName = $query->param('filepath'); my $fh = upload('filepath'); $fh =~ s/(?=\n)/\r/g; open OUTFILE, ">".$upload_dir."\\".$empFileName or die "Cannot ope +n file ".$upload_dir."\\".$empFileName; while (<$fh>) { print OUTFILE; print; } close OUTFILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Conversion of unix LF to DOS LF issues
by ikegami (Patriarch) on Feb 01, 2006 at 23:26 UTC | |
by master_son (Acolyte) on Feb 02, 2006 at 15:19 UTC | |
|
Re: Conversion of unix LF to DOS LF issues
by chas (Priest) on Feb 01, 2006 at 22:00 UTC | |
by blazar (Canon) on Feb 02, 2006 at 10:51 UTC |