I am trying to push values into hash. I want to add the values under 'par3'. e.g.
$VAR1 = { 'obj1' => ['par1',
'par2',
'par3' => ['par4','par5','par6',....]]}
I should also be able to add elements into 'par3' in case 'obj1'-'par1'-'par2'-'par3' matches. So far I have this, but I can't figure out how can I add "the second level" under 'par3':
push @{$a{$obj}},$par1,$par2,$par3
['par1', 'par2', 'par3' => [ 'par4', 'par5', 'par6' ] ]is just a weird way of writing['par1', 'par2', 'par3', [ 'par4', 'par5', 'par6' ] ](a reference to an array four elements). Is that really what you want?$VAR1->{ obj1 } = [ 'par1', 'par2', 'par3', [ 'par4', 'par5', 'par6' ] ];? If not, please explain why this would not do.@ikegamito let me know you've made these changes).