rkg has asked for the wisdom of the Perl Monks concerning the following question:
I have a ".csv" file that was emailed to me. It opens fine in Excel. It opens fine in Notepad, tho it seems tab delimited (despite the file name), and the eol chars show in notepad as empty boxes and the file is run onto one line.
Fine -- at this point, I am thinking it is a tab delim file and I need to adjust unix/win line endings.
When I read it in with perl, however, and print the 1st line, I get an extra space after each char:
yields something like thismy $fh = FileHandle->new($file) or die "cannot read open $file"; my $row = <$fh>; print "|$row|\n";
where the "!" denotes a black box. When I look at the file in Notepad or Excel, the first line is "DAILY REPORT", not "D A I L Y R E P O R T"| !D A I L Y R E P O R T |
Where are the extra spaces coming from?
Thanks
|
|---|