On Dec 2, The Ghost said:
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?
You'll want to use File::Find (a standard module) to do your directory recursion for you. For each file you get to, open it, count its newlines, and add that to your running total.
-- Jeff "japhy" Pinyan % How can we ever be the sold short or RPI Acacia Brother #734 % the cheated, we who for every service http://www.perlmonks.org/ % have long ago been overpaid? http://princeton.pm.org/ % -- Meister Eckhart -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>