Code metrics?

Stas Bekman stas at stason.org
Fri Jul 11 13:51:38 CDT 2003


Nathan Bailey wrote:
> In my wanders, I came across:
> 	http://starship.python.net/crew/gherman/playground/pycount/
> a code-metric measure for Python.  Is there a similar beast for perl?
> It would be nice to have something that counted lines of real code,
> regardless of how people format their braces, etc...
> 
> N (just how many lines is the my.m portal... :-)

perl -MO=Deparse -le '\
print \
"this is a string" \
# hmm, some comment \
. "another string" \
# bummer, i should end the line now \
;' \
| wc -l
-e syntax OK
       2

try without the | wc -l

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas at stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




More information about the Melbourne-pm mailing list