$noLineCode += scalar(grep { $_ =~ /\w/ } @aLine);
will include POD as well, so... it actually measures "code" as opposed to "whitespace", not "code" as opposed to "non-code". Eh, so to speak :)
It depends on what you want to measure and what you think the metric says about the source.
/J
In reply to Re: Re: Re: Perl LOC counter?
by jplindstrom
in thread Perl LOC counter?
by samtregar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |