Created
October 30, 2013 11:43
-
-
Save markusfisch/7231285 to your computer and use it in GitHub Desktop.
Count the number of semicolons in a source file. This is a better (though still imperfect) approach to measure the complexity of a project than simply counting lines.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
print join( '', <STDIN> ) =~ tr/;// . "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment