On Mon, 10 Sep 2001, Benjamin Bradley wrote
> > What should be done to write PERL script which counts the number of lines
> > of code in a file?
>
> The easiest way (perhaps not the most efficient) is to read in the
> contents of the file into an array and reference the array as a scalar:
Of course that gives you the number of lines of text in the file,
including blank lines as well. If you have a more rigid definition of
"line of code," you'd have to put in some qualifying statements.
- Benjamin Bradley - "these strange things happen all the time"
- http://lostpoet.tripod.com/
- whee life what a rush
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]