foreach my $key (keys %$data) { my $thing = $data->{$key}; if (ref $thing eq 'HASH') { useThingAsHashRef($thing); }elsif (ref $thing eq 'ARRAY') { useThingAsArray($thing); } }
In reply to Re^3: Array / Hash Confusion!
by SuicideJunkie
in thread Array / Hash Confusion!
by andy503
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |