Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Line-counts of perl programs/modulesby Tarka (Novice) |
on Apr 30, 2001 at 08:02 UTC ( [id://76543]=note: print w/replies, xml ) | Need Help?? |
A lot of people have replied with something equivalent to "It depends what you're trying to measure." In my case I was cleaning up some legacy database code left by a programmer with a particularly bad case of the cut-n-paste coding style. I was abstacting the low-level routines, and was curious to how much I was actually able to remove from the other routines.
I got to wondering what people actually measured when called upon. In the end in just took a guestimate with "egrep -c '}|;' <filename>". Of course, line-count (high or low) by itself means nothing. Don't worry, I fudged a few in my military programming days ;) Thanks to all for the replies.
In Section
Seekers of Perl Wisdom
|
|