foreach $animal ( @{ $animals{pets} } ) { push ( @some_animals, $animal ); }
Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...
In reply to Re^2: Hash of Arrays (populating and iterating)
by Cody Pendant
in thread Hash of Arrays (populating and iterating)
by USP45
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |