Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: The joys of bad code

by TomDLux (Vicar)
on Oct 26, 2004 at 15:39 UTC ( #402647=note: print w/ replies, xml ) Need Help??


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:

my @lines = read_file( ... ); # note copying, rather than passing a re +f for ( @lines ) { .... }
So they read in and copy a million lines, then process it one line at a time.

--
TTTATCGGTCGTTATATAGATGTTTGCA


Comment on Re: The joys of bad code
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://402647]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2015-08-31 23:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (366 votes), past polls