programming-examples/perl/Hash/Hash of Hashes with Lists of Values.pl
2019-11-15 12:59:38 +01:00

4 lines
177 B
Perl

my $hashptr = { "Teacher"=>{"Subjects"=>[ qw(Science English)]},};
print $hashptr->{"Teacher"}->{"Subjects"}->[0],"\n";
print "@{$hashptr->{'Musician'}->{'Instruments'}}\n";