in reply to How do I find the total number of lines in a file?
open(FILE, "filename"); @lines = <FILE>; close(FILE); $num = @lines;
--newbie00
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Answer: How do I find the total number of lines in a file?
by jlf (Scribe) on Jan 01, 2002 at 02:12 UTC |