in reply to map into a multidimensional hash
No
You can't access a %hash before it defined, so you can't do $hash{$left}{$right} within a map statement that assigns to %hash