Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Discussing a name space

by fernandes (Monk)
on Sep 11, 2007 at 15:25 UTC ( [id://638322]=note: print w/replies, xml ) Need Help??


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.

Replies are listed 'Best First'.
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://638322]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-19 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found