In a nutshell...
my @a = qw/A B C D E F G H/; my @b = qw/7 6 5 4 3 2 1 0/; my @KEY = map {$a[$_], $b[$_]} (0 .. $#a);
How can I get rid of @a and @b by using anonymous arrays? I think I recall seeing a bit of code around here that pulls it off, or at least discusses it, but my search fu is broken.
Of worthy note:
The size of @a and @b is guaranteed to be the same size.
Can't use hashes, I need to preserve their order.
The size of each array is never more than 32ish or thereabouts.
In reply to merging anonymous arrays by SavannahLion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |