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 ]

jonasbn (1153)

jonasbn
  reversethis-{gro.napc} {ta} {nbsanoj}
http://e-diot.dk/
AOL IM: BJonasN (Add Buddy, Send Message)

Perl Programmer located in Copenhagen, Denmark. Active member of Copenhagen Perl Mongers.

Author of:

  • Business::DK::CPR
  • Business::DK::CVR
  • Business::DK::PO
  • Business::OnlinePayment::CashCow
  • Date::Holidays
  • Date::Holidays::Abstract
  • Date::Holidays::Super
  • Date::Pregnancy
  • Games::Bingo
  • Games::Bingo::Bot
  • Games::Bingo::Print
  • Module::Info::File
  • Module::Template::Setup
  • Test::Timer

and maintainer of:

  • Tie::Tools
  • XML::Conf
  • Workflow

Journal of jonasbn (1153)

Monday August 18, 2003
04:10 AM

Time::Interval and when the CPAN just works

[ #14172 ]

I am working on a project where I want to do some calculations on how much I actually work (scary stuff). So I want to the CPAN and found Time::Interval 1.0, which looked really usable.

I tried to install it via CPAN and it failed :-/

Apparently it required Date::Parse, but the Makefile.PL did not specify so:


use ExtUtils::MakeMaker;
WriteMakefile(
        'NAME' => 'Time::Interval',
        'VERSION_FROM' => 'Interval.pm',
        'ABSTRACT_FROM' => 'Interval.pod',
        'AUTHOR' => 'Andrew N. HIcox ',
        'PREREQ_PM' => {
                #none at the moment
        }
);

Reading through the documentation I noticed that Date::Parse was mentioned quite a few times, so I suspected that this module WAS used by Time::Interval.


% find . -name "*.p?" | xargs egrep -n -e "require|use"
./Interval.pm:12:use strict;
./Interval.pm:13:require Exporter;
./Interval.pm:33: warn ("two dates are required for the getInterval method");
./Interval.pm:36: require Date::Parse;
./test.pl:8:use Test;
./test.pl:10:use Time::Interval;

And I was right, So I sent a mail to the author pointing out the obvius mistake of forgetting Date::Parse in the requirement list, the day after the module was updated to 1.0.1 with the fix and he even mentioned me and thanked me in the Changes file and I could see that the module also passed its test on CPAN-testers.

So little work and we both gained something :)

CPAN is so much more than a software repository and I can only recommend taking the time to help out other authors they might help you some day...

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.