Impossible. You're asking to do something that's the very definition of looping without using a loop. What do you actually want?
Check out Data::Diver.
If @a contains no numbers, you can omit map \$_,.
Update: I thought you had $b{$a[0], $a[1], $a[2]}. Using a slice is definitely the cleanest solution. You'd still be looping, though.
In reply to Re: use array for hash-keys without loop
by ikegami
in thread use array for hash-keys without loop
by piccard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |