in reply to Package hash accessor

A "hash of hashes" is really a hash of hashrefs. No dereferencing required. Therefore, the keys parameter should be:

(keys %{$self->{a_hash}})

Replies are listed 'Best First'.
Re^2: Package hash accessor
by gfairweather (Novice) on Mar 31, 2009 at 22:52 UTC

    Fantastic, that solves it. Many many thanks. I don't know how I missed that :)