in reply to Re: LOC
in thread Counting lines of C code
As a side note, it's probably slightly easier to say:
perl -e '1 while <>; print "$.\n"' file1.c file2.c..which is what the $. special variable is more or less meant for.
perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: LOC
by jsprat (Curate) on Jul 25, 2002 at 20:13 UTC | |
by Chmrr (Vicar) on Jul 25, 2002 at 20:28 UTC |
In Section
Seekers of Perl Wisdom