in reply to reading file into an array
The real question is not "how do you read the file into an array". The real question is, "Do you actually need the whole file in memory at the same time? or would your problem be simpler dealing with it one line at a time?"
while ( my $line = <FILE> ) { process( $line ); }
--
TTTATCGGTCGTTATATAGATGTTTGCA
|
|---|