develooper Front page | perl.beginners | Postings from December 2002

Choice of methods...

Thread Next
Ben Crane
December 2, 2002 03:33
Choice of methods...
Message ID:
Hi all,

I have to convert a standard CSV file (nothing
special) into a specific custom-defined,
I've decided to do it in perl because perl is just
lovely with txt files. But my one question is, since
I'm reading a line from an array (which has the
contents of the CSV in it) and performing some
calculations on various fields, then reconstructing
the text file based on those calculations.

My question is : using arrays to store and manipulate
this data, is it the best way of doing it? what
advantages would using hashes have? for me it'd be
easier to work with arrays and remove/replace/modify
existing data into each cell then write it to a new
file...arrays make sense...but is there another way?


Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About