$pupils{JohnDoe}->{"ClassID"} = "99-A";
With an array anytime you want to manipulate a pupil/set of pupils' attributes you'll have to traverse the array looking for the proper name. With a hash keyed to their name you let Perl do it for you. Of course you had better be sure all the names are unique first.
In reply to Re: 2d arrays in Perl?
by perigeeV
in thread 2d arrays in Perl?
by jotti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |