%hash = map { $_->[0] => $_ } @$array_ref;
Perhaps?
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: optimizing code - need help
by davorg
in thread optimizing code - need help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |