in reply to use array for hash-keys without loop
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use array for hash-keys without loop
by almut (Canon) on Mar 11, 2010 at 16:20 UTC | |
by ikegami (Patriarch) on Mar 11, 2010 at 17:04 UTC | |
|
Re^2: use array for hash-keys without loop
by Ratazong (Monsignor) on Mar 11, 2010 at 16:29 UTC | |
by ikegami (Patriarch) on Mar 11, 2010 at 17:07 UTC |