my @normal_enemies = keys %{$hashref->{normal_enemies}}; print "normal enemies:\n@normal_enemies\n\n"; my %chucky = %{$hashref->{items}{weapons}{sword_chucks}}; print "sword chucks:\n"; for (keys %chucky) { print "$_ - $chucky{$_}\n"; }
In reply to Re: getting keys of multi-level hashrefs
by youwin
in thread getting keys of multi-level hashrefs
by mask_man
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |