I'm hoping someone could help me out with this, I'm trying to create a structure like this:
%hash{ ID => [ [1,2,3,4,5],[1,2,3,4,5] ] }what i'm doing is iterating over the rows of a database table, for each row, I want to add it to that inner array. , so if i added another row it would look like this:
%hash{ ID => [ [1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5] ] }I'm having trouble wrapping my head around it. how would I add @ARRAY to the hash? Thanks
In reply to Adding to hash that contains an array of arrays by eppo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |