in reply to adding an element to AoH
If i understood your question correctly, here is the solution for that.
change $AoH[0]->{heading}->[3]->{item => 'eee'}; into $AoH[0]->{heading}->[3]->{item} = 'eee'; [download]
Prasad