in reply to Printing only the keys and values of a single nested hash (HoH)

The syntax for a hash ref is just a little different:

for my $protein ( keys %{$rHoH{$name}}) { print "$protein=$rHoH->{$name}{$protein}"; # __ }

  • Comment on Re: Printing only the keys and values of a single nested hash (HoH)
  • Download Code

Replies are listed 'Best First'.
Re^2: Printing only the keys and values of a single nested hash (HoH)
by Jeri (Scribe) on Nov 09, 2011 at 21:18 UTC

    Great Thanks! I also had to put -> in

     (keys %{$rHoH->{name}})