|
|
| Do you know where your variables are? | |
| PerlMonks |
Adding a new key-value pair to a nested anonymous hashby Intrepid (Curate) |
| on Jan 16, 2025 at 02:22 UTC ( [id://11163708]=perlquestion: print w/replies, xml ) | Need Help?? |
|
Intrepid has asked for the wisdom of the Perl Monks concerning the following question: I'm looking for help understanding dereferencing with a complex data structure. I have an array of references to anonymous arrays which in turn contain a scalar as a the first item and a reference to an anonymous hash as the second item:
For some items in the array I want to add another key-value pair to the hash, but I just cannot figure out how to do that. I have only gotten so far:
The subroutine inv is this, although it could be anything:
Maybe I am making this too complicated for myself. Jan 16, 2025 at 02:07 UTCA just machine to make big decisions
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||