in reply to Re^2: Text CSV_XS memory crash
in thread Text CSV_XS memory crash
...in order to pull out the first value of every row to get a column.
Not sure I'm understanding you correctly, but if you only need the first column of every row, why not store only the first column (that would at least reduce memory usage somewhat).
The getline() method returns a reference to an array holding the columns. In other words, $row->[0] would be the first column.
If, OTOH, you actually do need access to all columns of all rows simultaneously, I'm afraid there's not much you can do except to upgrade memory (or write out the data into another (DB) file format that allows direct random access to individual fields).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Text CSV_XS memory crash
by glepore70 (Novice) on Feb 02, 2011 at 15:57 UTC | |
by Anonyrnous Monk (Hermit) on Feb 02, 2011 at 16:18 UTC | |
by marto (Cardinal) on Feb 02, 2011 at 16:01 UTC | |
by Tux (Canon) on Feb 02, 2011 at 18:18 UTC |