By the way - I've put a bug-fix version up on the CPAN:
http://search.cpan.org/dist/Perl-Metrics-Simple/
Thecountperl script in 0.031 fixes the bug Ovid found.
-Matisse
On Dec 14, 2006, at 3:05 PM, Michael G Schwern wrote:
Matisse Enzer wrote:
sub complexity_of_six {
my $bar = shift;
my $total = 0;
my $type = ref $bar;
if ( ! $type ) {
$total = $bar;
}
elsif ( $type eq 'ARRAY' ) {
foreach my $
Matisse Enzer wrote:
>sub complexity_of_six {
>my $bar = shift;
>my $total = 0;
>my $type = ref $bar;
>if ( ! $type ) {
>$total = $bar;
>}
>elsif ( $type eq 'ARRAY' ) {
>foreach my $baz ( @{$bar} ) {
>$total
On Dec 10, 2006, at 1:16 AM, Ovid wrote:
--- Matisse Enzer <[EMAIL PROTECTED]> wrote:
McCabe Complexity
-
Code not in any subroutine::
min: 1
max 10
mean: 1.00
std. deviation: 2.54
median: 1.00
Subroutines/