foreach my $i ( %{ $ref->{b} } ) { print $i; # I want to see the content of the hash. }