I am stumped populating a hash of hashes which consists of complex data. I am parsing a file which consists of multiple records in a custom format. I only want to capture 5 fields. Three fields are simple which I populate as key=> value pairs (i.e. $hash{$counter}{'variable'} = variable). The other two fields are repeatable (i.e. http://www.google.com, http://www.greenpeace.com, http://www.perl.com, etc). So I am pushing these fields as push @{$fields},$url. The problem I am experiencing is that when I use this strategy to pupulate my hoh, the array is counted rather than stored as a reference value. I use $hash{$counter}{'url'} = push @{$fields},$url. I tried using eval {push @{$fields},$url}, but same results. I am sure I am missing something very simple here. Can you folks guide me in the right direction? What's the best way to capture the value of an array reference in a hash of hash key? Thanks for all your help.
Still trying to sort this out...