http://www.perlmonks.org?node_id=1004152


in reply to Re: merging anonymous arrays
in thread merging anonymous arrays

Or, if 'anonymous' means 'not using a name nor reference', you can change it to
my @key = map { [qw/A B C D E F G H/]->[$_], [qw/7 6 5 4 3 2 1 0/]->[$_] } 0 .. 7;
In such a case, you have to specify the size externally, though, since there is no way how to refer to the arrays.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ