Subject: | runtime error if package-definition not in the first line |
If your package doesn't start with the package-definition (but for
instance with a comment or POD) you get the following error:
Can't call method "find" on an undefined value at
/usr/lib/perl5/site_perl/5.8.8/Perl/Metric/Basic.pm line 113.
You could do one of the following:
1. Sort hashes with empty 'package'-Key out of @packages.
2. Change the algorithm so that the package-key is never empty :).
3. As user: Put the package-Definition to the first line (yes, very
easy, but this should not be necessary to use Metrics).
System information:
Perl::Metric::Basic 0.31
This is perl, v5.8.8 built for i686-linux
Linux 2.6.21-xen-vs2.2.0.4
x86_64 Intel(R) Xeon(R) CPU
2.66GHz GenuineIntel GNU/Linux
regards
karl maria