in reply to Problem is assigning array as hash value
If i see correctly, maybe the following is wrong:
push(@time_arr,@{$parMap_ha{$r{partitionName}}},$r{time});
Doing so you are pushing into @time_arr not into @{$parMap_ha{$r{partitionName}}}
Perhaps you mean:
# #the array to push # a list of values to push into +the array @{$parMap_ha{$r{partitionName}}} push @{$parMap_ha{$r{partitionName}}},@time_arr,$r{time});
More: 'partition-2' => $VAR1->{'partition-4'}, it is not an error: it is Data::Dumper saying that the value for key partition-2 is a reference (if i'm correct) to the value holded by the key partition-4
L*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem is assigning array as hash value
by udvk009 (Novice) on May 19, 2016 at 23:54 UTC |