in reply to adding an element to AoH
Here is working code for what he wants to do:
Note the location of the "=" sign.$AoH[0]->{heading}->[3] = {item => 'eee'};
My preference would be to avoid the C-style absolute indexing, and use:
push @{$AoH[0]->{heading}} , {item => 'eee'};
You're just jealous cause the voices are only talking to me.
No trees were killed in the sending of this message. However, a large number of electrons were terribly inconvenienced.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: adding an element to AoH
by Tanktalus (Canon) on Jan 05, 2006 at 17:45 UTC | |
by jhourcle (Prior) on Jan 05, 2006 at 20:03 UTC | |
|
Re^2: adding an element to AoH
by tirwhan (Abbot) on Jan 05, 2006 at 15:23 UTC | |
|
Re^2: adding an element to AoH
by prasadbabu (Prior) on Jan 05, 2006 at 15:29 UTC |