in reply to Re^2: Reading a CSV file
in thread Reading a CSV file
Since it did neither, I must assume that the file exists, you can open it, but that it is empty. Using a module will not change that. I recommended it because CSV can be tricky but you aren't yet at the tricky part.1. Generated an error because you were unable to open the file 2. Printed every line in the file
Update: Since you have said elsewhere in the thread that the file is 63MB - consider that you may have two files with the same name in different directories. Since you have not told perl to open a file with an absolute path, it is looking for a file in the same directory that you executed perl from.
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Reading a CSV file
by alchang (Novice) on Mar 31, 2008 at 14:49 UTC | |
by Limbic~Region (Chancellor) on Mar 31, 2008 at 14:58 UTC | |
by alchang (Novice) on Mar 31, 2008 at 15:07 UTC | |
by radiantmatrix (Parson) on Mar 31, 2008 at 16:28 UTC |