in reply to foreach and hash of hashes

It seems like you might be mixing up ways of de-referencing the hash of hashes.
my $pupils = \%pupils; foreach my $nm ( keys %{$pupils->{$class}} ){ push @namelist, $nm; }

Replies are listed 'Best First'.
Re^2: foreach and hash of hashes
by momo33 (Beadle) on Jun 13, 2009 at 06:56 UTC
    Thank you all for the reactions. I think I'm starting to understand it.