in reply to Re: Hashes as return values
in thread Hashes as return values

If you would like something more pretty, I would recommend assigning the return value into a hashref then looping over that:

my $loopHashRef = $mod->acls; foreach (keys %$loopHashRef) { print $loopHashRef->{$_}; }

If you like, you could also assign the return value directly into a hash and loop over that:

my %loopHash = %{$mod->acls}; foreach (keys %loopHash) { print $loopHash{$_}; }

Update: Fixed a sigil - *grumble* copy+paste mistakes... *grumble*