The Ghost <[EMAIL PROTECTED]>asked: > 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?
Use File::Find to iterate over the files and then sum up the newlines you find in each file. Counting the newlines in a single file is left as an exercise for the reader. HTH, Thomas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>