Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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

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 chilling in the Monastery: (5)
As of 2016-09-25 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (470 votes). Check out past polls.