in reply to Problem is assigning array as hash value

It is a bit difficult, for me, to look and understand what you say..

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*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

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

    My apologies for the scattered details ... but you got it spot on and the issue was with the push function as the values were not getting pushed in the hash and post suggested changes it was resolved! Thanks for your quick help! Appreciate..