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