- If one of those is correct what goes in the blank if I want to iterate through one of the arrays?e.g. my %animals = ( pets => [ qw(cat dog) ], non => [ qq(rhino giraffe) ], );
foreach $i (???) { push ( @some_animals, $animals{pets}[$i] ); }
In reply to Hash of Arrays (populating and iterating) by USP45
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |