in reply to Re: Line-counts of perl programs/modules
in thread Line-counts of perl programs/modules
Why are you counting your close curly braces? Wouldn't it be better to just count the ';'s? If you are like me and comment a lot (even comment out lines of code for later use) you might want to grep out the '#'s too then count the ';'s.
I still can't think of why you would count the close curlies though.
egrep -v '^#' file | egrep -e ';$' | wc -l
----------
- Jim
In Section
Seekers of Perl Wisdom