since there is no way how to refer to the arrays
There is if you make them arguments to an on-the-fly subroutine.
$ perl -E ' > @key = sub { > map { $_[ 0 ]->[ $_ ], $_[ 1 ]->[ $_ ] } > 0 .. $#{ $_[ 0 ] } > }->( [ qw{ A B C } ], [ qw{ 1 2 3 } ] ); > say qq{@key};' A 1 B 2 C 3 $
A little less esoteric than ColonelPanic's clever solution ++.
Cheers,
JohnGG
In reply to Re^3: merging anonymous arrays
by johngg
in thread merging anonymous arrays
by SavannahLion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |