Slash Boxes
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)

  reversethis-{gro.napc} {ta} {nbsanoj}
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;
        'NAME' => 'Time::Interval',
        'VERSION_FROM' => '',
        '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"
./ strict;
./ Exporter;
./ warn ("two dates are required for the getInterval method");
./ require Date::Parse;
./ Test;
./ 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.
More | Login | Reply
Loading... please wait.