in reply to Re: Printing hash of a hash data
in thread Printing hash of a hash data

hello i attempted to execute your snippet in order to explore but i got the following error:

Type of arg 1 to each must be hash (not hash element) at ./test.pl line 24, near "} ) " Execution of ./test.pl aborted due to compilation errors.

Replies are listed 'Best First'.
Re^3: Printing hash of a hash data
by NetWallah (Canon) on Sep 17, 2012 at 22:46 UTC
    Try:
    while ( my ( $key, $value ) = each %{ $my_hash{$detective} }) {

                 I hope life isn't a big joke, because I don't get it.
                       -SNL