in reply to Retrieving data from multidimensional hashes

If you can't handle multiple levels, do it level by level.

my $subhash = $hash{$x}; my $count = keys %$subhash;

Replies are listed 'Best First'.
Re^2: Retrieving data from multidimensional hashes
by Back2Coding (Initiate) on Aug 11, 2008 at 19:20 UTC
    ok, maybe it has been too long since I last wrote code ;) Whats the "my" all about in front of the variables on those lines? Is it just to say "this is a variable name"?

      It's a scoping mechanism and a typo avoidance mechanism.

      Make sure to use use strict; in your programs and modules.