>>>>> On Tue, 28 Nov 2000 11:42:29 +0000 (GMT), Matt Sergeant <[EMAIL PROTECTED]> said:

   > I'm going for a record - who has the most modules in their CPAN directory?

It depends what you define as module. Here we are counting namespaces:

% zcat ~ftp/pub/CPAN/modules/02packages.details.txt.gz | perl -nale '$F[2] =~ 
m|^./../(.+?)/|; print $1' | sort | uniq -c | sort -n | tail
     76 AWIN
     77 JPRIT
     91 BIRNEY
     92 LDS
    101 MKUL
    103 GBARR
    104 JWIED
    125 NI-S
    180 GSAR
    203 GAAS

Here we are counting files that contain at least one module (older
files excluded):

% zcat ~ftp/pub/CPAN/modules/02packages.details.txt.gz | perl -nale '$F[2] =~ 
m|^./../(.+?)/|; next if $SEEN{$F[2]}++; print $1' | sort | uniq -c | sort -n | tail
     18 DOUGM
     18 LDS
     21 GBARR
     22 ILYAZ
     22 JPRIT
     22 SBURKE
     23 MSCHWERN
     25 JWIED
     28 GAAS
     30 TOMC

Looking closer reveals that both counts have horrible unfair
properties. Maybe you must find your own definition:-)

-- 
andreas

Reply via email to