Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

acme (189)

acme
  (email not shown publicly)
http://www.astray.com/

Leon Brocard (aka acme) is an orange-loving Perl eurohacker with many varied contributions to the Perl community, including the GraphViz module on the CPAN. YAPC::Europe was all his fault. He is still looking for a Perl Monger group he can start which begins with the letter 'D'.

Journal of acme (189)

Thursday February 06, 2003
05:42 AM

CPANSTATS

[ #10432 ]
I've always wondered what modules people have installed from CPAN, but CPAN has too many mirrors. Versions are interesting too. So I got bored last night and played around with LWP, DBD::SQLite and Sort::Versions. Here is a beta version of CPANSTATS.

It's not official in any way, and like all stats be careful interpreting them. No, it's not perfect, but I decided to get it done instead. Patches to make the client more portable welcome.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • CPANSTATS (Score:2, Interesting)

    This is a very cool idea, I'm running it from cron now. I've never really understood why CPAN didn't collect these sort of statistics. I particularly liked how you saved the UID in the source code :-)
  • Ultra Cool (Score:2, Interesting)

    This is ultra cool. Been waiting for this a very long time.

    I know it won't happen but couldn't we display the information inside search.cpan.org?

  • A few comments:

    • iIt is really interesting to see the version of each module that users have installed (man, XML::Parser 2.20! That's OLD!),
    • it looks like versions are not sorted quite properly though, if I judge by the data on CGI.pm,
    • It is also quite surprising that only 40 out of 43 users have CGI.pm installed... I thought it was part of the core
    • There sure are a lot of modules in the Canon:: name space ;--)
    • who is running 5.007003? ;--)
    --
    mirod
    • by acme (189) on 2003.02.06 9:00 (#16769) Homepage Journal
      I'm using Sort::Versions and it looks like it sometimes go wrong. And now thanks to Mark Fowler, the client now has an --ignore flag, so local modules such as Canon:: don't necessarily get into the stats ;-)

      Interesting reading though.

      • who is running 5.007003? ;--)

      $ /usr/local/bin/perl5.7.3-64-ld -V:perladmin
      perladmin='nick@ccl4.org';

      It generated a lot of warnings and a few failed regression tests while I installed the modules needed to run Léon's script. I see I'm not the only person with a 5.005_03 now, but I'm still the only 5.9.0. (Which is actually what I'm using day to day for development tasks. I don't have anything in production yet, but I suspect I'll use 5.8.0 (or 5.8.1 once it's done) for that)

  • If you're going to timestamp the report it would be nice to include the time zone. Also, stating somewhere on the site how often the reports are
    generated would be good. Finally, how are there
    58 users on the current report when I just signed up and have a UID less than 58?
    --
    Were that I say, pancakes?
    • A timezone would be useful but I'm not too worried about it being up to a 24 hours off, to be honest. The report is generated every 10 minutes, I've added a note about that. Oh, and you noticed a bug about the number of users. I used a COUNT where I meant a DISTINCT, oops ;-)

      I think this is a sign that I should stop coding and instead head off to the London.pm social meeting...