The Ghost <mailto:[EMAIL PROTECTED]> wrote:
: I want to know how many new line chars there are in all files : in a directory (and it's subdirectories). What's the best way? A lot depends on your idea of "best". It might be that the best way is to hand the project off to someone else and reap the benefits of their skills. In fact, many very rich people say this is the best way to do just about anything. So what do you mean by "best"? One way to tackle this problem is to figure out how to find the number of new lines in any file. Since any file may be very large, assume at least one file cannot be loaded into memory. Now take that solution and File::Find to apply it to many files. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 . . . With Liberty and Justice for all (heterosexuals). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>