Speedfreak has asked for the wisdom of the Perl Monks concerning the following question:
Hej All,
Interesting one for you. I have a CSV file which I need to search through. I dont want to use DBI::CSV because its a hassle, just want to work with filehandles and arrays.
Here comes the problem, the array would be 6000x7 in dimension!
What I need to do is read each line into an array and then perform a soundex on a couple of fields and put those that match into another array.
Gut feeling tells me that going DBI::CSV would be inefficient because of the overheads of creating connections and record sets and besides, just reading and splitting the file at the moment is only taking a few seconds.
Would I be better reading the input file line by line and putting those that match into a second array?
- Jed
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Best way to handle/search CSV file in Perl?
by lhoward (Vicar) on May 21, 2000 at 06:17 UTC | |
|
Re: Best way to handle/search CSV file in Perl?
by ZZamboni (Curate) on May 21, 2000 at 04:34 UTC | |
by takshaka (Friar) on May 21, 2000 at 05:42 UTC | |
|
Re: Best way to handle/search CSV file in Perl?
by Speedfreak (Sexton) on May 21, 2000 at 16:16 UTC | |
by Anonymous Monk on Nov 23, 2004 at 03:01 UTC | |
|
Re: Best way to handle/search CSV file in Perl?
by princepawn (Parson) on May 21, 2000 at 04:49 UTC |