SLOCCount - A Perlmonks post pointed me to this. Previously I’d just used wc to get a rough estimate. But that includes POD and other docs and I don’t care enough about the figure to create something better. This program filters out comments and seems to work for more than two dozen languages. Cool.
More interesting but of dubious value are some value metrics it generates. Running this program against the OpenInteract2 source tells me that I have 34,400 SLOC, and using something called a COCOMO model it estimates:
Obviously to be taken with a large grain of salt :-)