From: Arno H. <aho...@in...> - 2000-09-30 17:59:10
|
>Wow. How did you do the breakdown? The numbers are interesting and useful. I just discovered that my numbers weren't quite right. Around 170 functions is ok, but for if/for/while it looks like: 294 if-statements 58 for-loops 70 while-loops My first (wrong) count was done by using grep - but as I'm too dumb using grep-regexps I didn't count lines starting with tab characters. The new count was done like this: cat *.php3 | perl -ne 'print if /^\s*if\s*\(/;' | wc cat *.php3 | perl -ne 'print if /^\s*while\s*\(/;' | wc cat *.php3 | perl -ne 'print if /^\s*for\s*\(/;' | wc Should be pretty close to the truth. /Arno |