|
|
| XP is just a number | |
| PerlMonks |
Re: script not workingby CountZero (Chancellor) |
| on Dec 27, 2012 at 19:03 UTC ( #1010562=note: print w/ replies, xml ) | Need Help?? |
|
Putting the whole file into an array is wasteful of time and memory. What will happen if it is a 10 GB file? You can do just as easy the following: It is faster and uses less memory. CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James My blog: Imperial Deltronics
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||