in reply to 2d arrays in Perl?
If you want CourseCodes to be an array, you can add elements to it like this:
and then access them like this:push @{$thePupils[23]{"CourseCodes"}}, "99-A"; push @{$thePupils[23]{"CourseCodes"}}, "99-B";
print ${$thePupils[23]{"CourseCodes"}}[0]; print ${$thePupils[23]{"CourseCodes"}}[1];
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: 2d arrays in Perl?
by blokhead (Monsignor) on Aug 21, 2002 at 17:19 UTC |
In Section
Seekers of Perl Wisdom