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
In reply to Re: The joys of bad code
by TomDLux
in thread The joys of bad code
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |