in reply to Counting lines of C code

wc -l *.cpp *.h? :)

Seriously, what are the restrictions? Counting or not counting comments? Blank lines? Are you going to penalize one developer over another because one does

if(a) { do_this(); }
and another does
if(a) do_this();
?

You probably want to go over to freshmeat.net and type "metrics". That'll find you things like CCCC, to pick the first result from the list.

I like perl, and I do a lot of things with it, but this isn't a wheel I'd chose to reinvent.
--
Mike