Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I may have spoke to soon. It appears that this is pulling my data and structuring it correctly when I output to a txt file. However I need to be able to pull the specific columns and im not sure how to do that. I want to be able to do something like: print hash->{header_name} and it will give me all of the keys under that column. So again, I have columns in a csv file that are kind of "stacked" on top of each other, meaning there is not a single header row at the top of the file, the header for each column is on different lines of the file. The headers are always enclosed in <>, so I want to scan through my csv pull out the headers and then put the corresponding values in that particular column into a hash that I can read out by doing something like hash->{header} this would give me all of the values in the column. Sometimes there are 100 rows under a header and sometimes there is just 1. Thanks again for your help, sorry if this doesnt make sense, it is kind of confusing. Let me try to explain again what the csv looks like...
This goes on like this randomly through out the csv file, I hope that this little picture makes some more sense. I think that we are on the right track but not here yet! Thanks again for everyones help! In reply to Re^3: Help parsing a complicated csv
by rmfin730
|
|