my $pupils = \%pupils; foreach my $nm ( keys %{$pupils->{$class}} ){ push @namelist, $nm; } [download]
In reply to Re: foreach and hash of hashes by ~~David~~ in thread foreach and hash of hashes by momo33