So if i run this script it works the first time but when i try to add another value to the array and then assign the array back to the hash reference it gives me the value of ARRAY(0x9bd8254) as the values in the array.
the three lines in question
@addedvalue = @{$state{$ustate}}{largest_city} ;
push @addedvalue, $city;
$state{$ustate}{largest_city} = \@addedvalue;
I assume I'm doing something wrong in the last line. As i print out the array before i do the last line and it looks fine. But i am unable to determine what I am doing wrong. Any help would be great.
Thanks.