and maintainer of:
I am revisiting an old project where I want to make some statistics on lines of code.
In order to check whether was I was doing was completely crazy I checked the file in question with the wc command.
hyperstation ~/Develop/Copenhagen/modules/Metrics/LOC % wc t/LOC.t
41 122 956 t/LOC.t
This differs a bit from my Perl code, which says it contains 42 lines... so I tried grep.
hyperstation ~/Develop/Copenhagen/modules/Metrics/LOC % grep -c "" t/LOC.t
The man page for wc states
A line is defined as a string of characters delimited by a character
So that is probably the reason, but it still annoys me, heh maybe I should entitle this entry, 'Using wc considered harmful', or maybe I just had too much coffee...