This is probably really easy. I just don't know how to make this any better: I am trying to make a hash of row references:
Where $array_ref is a pointer to a two-dimensional array. Does anyone know a one liner that would do this? Thanks in advance .... :o)foreach my $row (@$array_ref) { $hash{$row->[0]} = $row; }
In reply to optimizing code - need help by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |