in reply to Re: Discussing a name space in thread Discussing a name space
Someone has told me this before you... But, there are a lot of modules for CSV parsing and the output may be very large. From 300 texts, I've obtained 25 MB of statistical data (some cells are reduntant, and can be reindexed in an inverted fashion at second stage). By the way, I use SPSS for generating meta-data, like tf-idf scores, and a CSV file is perfect, because SPSS can easily parse it.
But I'm really interested in improving the module API. So, if you have time, I would love to receive your code.
Re^3: Discussing a name space
by moritz (Cardinal) on Sep 11, 2007 at 16:52 UTC
|
A CSV is just a representation of a two dimensional array, so each time you write print OUTFILE join(',', @row); you can just push @rows, \@row.
The best idea is probably to let the user decide what to do with the data.
At some point in your module you certainly have the data in an internal format - adding that to an array or hash should be trivial, as well as making that accessible to the user.
| [reply] [d/l] [select] |
|