in reply to The joys of bad code
At the place I worked last winter, there was code that would read files which were sometimes a million lines long:
So they read in and copy a million lines, then process it one line at a time.my @lines = read_file( ... ); # note copying, rather than passing a re +f for ( @lines ) { .... }
--
TTTATCGGTCGTTATATAGATGTTTGCA
|
---|