Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Using Split to load a hashby wfsp (Abbot) |
on Aug 20, 2006 at 13:59 UTC ( [id://568425]=note: print w/replies, xml ) | Need Help?? |
If it's useful it's useful! :-) Perhaps you could consider loading you data into one data structure instead of three arrays. You might also want a more general purpose approach where it would be easier to change the number and name of the columns. Putting aside the question of commas inside the fields and any other error checking one approach might be like this. It creates an array of hashes. If you were thinking of using something like HTML::Template for your output this would be very handy! :-)
output:
Hope that helps.
In Section
Seekers of Perl Wisdom
|
|