in reply to Help needed in reading a very large file line by line

How is a "line" defined in this file? It seems the definition of "line" in your file is different from what Perl expects a line to be.

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
  • Comment on Re: Help needed in reading a very large file line by line