Subject: | countperl dying on empty files |
$ touch empty.pl
$ countperl empty.pl
Can't call method "prune" on an undefined value at
/Library/Perl/5.8.6/Perl/Metrics/Simple/Analysis/File.pm line 270.
While empty files are technically valid, the real problem is that the script dies before printing
the report. I have also seen these warnings pass by:
Use of uninitialized value in concatenation (.) or string at /usr/local/bin/countperl line 38.