That should printfor my $computer (keys %instructions) { my $commands = $instructions{$computer}; for my $comm (keys %$commands) { my $argument_sets = $commands->{$comm}; for my $args (@$argument_sets) { my @values = @$args; print "$computer: $comm: [@values]\n"; } } }
unless I made a mistake. The code is untested but looks ok to me.comp1: cmd2: [test2 type1 view1] comp1: cmd1: [test1 type1 view1] comp1: cmd1: [test2 type1 view1]
In reply to Re: how to traverse thru this hash?
by japhy
in thread how to traverse thru this hash?
by rsennat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |