print "name is ", $hash{$foo}{"name"}, "\n"; #### my $thisname = $hash{$foo}{"name"}; print "name is $thisname\n";