my $max_val = max map { values %$_ } $hash_w, $hash_x, $hash_y, $hash_z;