We Recommend

Learning Perl Learning Perl
In this smooth, carefully paced course, a leading Perl trainer teaches you to program in the language that threatens to make C, sed, awk, and the Unix shell obsolete for many tasks. This book is the "official" guide for both formal (classroom) and informal learning. It is fully accessible to the novice programmer.


Posted By

noah on 01/16/08


Tagged

list array hash push multidimensional 2-d


Versions (?)


Push a new member into an array that is contained in a hash value


Published in: Perl 


URL: http://perldoc.perl.org/perldsc.html#Declaration-of-a-HASH-OF-ARRAYS

  1. # append new members to an existing hash of arrays
  2. push @{ $HoA{"simpsons"} }, "lisa", "maggie";

Report this snippet 

You need to login to post a comment.