http://www.perlmonks.org?node_id=127830


in reply to Getting keys/values from a referenced hash

All you need to do is dereference the hash before passing it to keys or each. Try this:
for my $key (keys %$results) { ... }

Good luck!

Ira,

Replies are listed 'Best First'.
Re: Re: Getting keys/values from a referenced hash
by professa (Beadle) on Nov 27, 2001 at 21:33 UTC
    Chizz, it works! Thanks!!!
    Seems I have to learn a lot more about hashes than I know by now... ;-)

    Micha