in reply to how to dereference an Array of Hashes

push @{$DataAoHRef}, ...

But this is only a solution to your specific problem. The bigger problem is that you need to parse a CSV file. We all love to write code, but this problem is deceptive; it's harder to do right than one might suspect. And it's already been solved with Text::CSV.

If you're planning on improving on what Text::CSV provides, that's great. If not, just use what's already available. That's why you're using Perl anyway, right? :)


Dave

Replies are listed 'Best First'.
Re^2: how to dereference an Array of Hashes
by gepebril69 (Scribe) on Oct 09, 2013 at 19:57 UTC

    Hi Dave,

    Thanks for the help. That is the line of code I was looking for

    I just need to read the csv info, from an xls file (I do this with xls2csv) and than read all lines so I can update a DB

    As far as I know I only need to go line by line to update the local DB

    I will have a look at this Perl module you proposed. Maybe it can provide me with new ideas.