Hello Monks, I am beginner in perl. I am facing issue with storing multidimensional arrays as key value pairs. I have 3 arrays. Array1 is a key of Array2 and Array2 should be key for Array3. Can anyone help me with this? With my code below array1 has keys for array2 and is stored as key value pair. How can I do it for 3 arrays?
#!usr/bin/perl use Data::Dumper; my @array1 = 'A' .. 'E'; my @array2 = 1 .. 5; my @array3 = 'a' .. 'e'; my %hash; @hash{@array1} = @array2; print Dumper \%hash; ~
In reply to Hashes of Hashes with Multidimensional array by Eshan_k
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |