So doesn't map still solve the problem by using a loop? And wouldn't all the inefficiencies of using a loop directly be carried over by using map?%hash = map { getkey($_) => $_ } @array; is just a funny way to write %hash = (); foreach $_ (@array) { $hash{getkey($_)} = $_; }
Honest questions, I'm genuinely curious.
In reply to Re^2: Get AoH values into array
by starX
in thread Get AoH values into array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |