I chose not to assume that an operon was unique thoughout the file, since it wasn't explicitly stated in the spec.
If I can assume uniqueness, then I'd remove the push and change to a HoA:
$hash->{$fields[0]} = \@genes;
In reply to Re^3: Getting data from a file (Operons and Genes).
by thezip
in thread Getting data from a file (Operons and Genes).
by chrisantha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |