in reply to Re: Comparing two dates and finding out number of days
in thread Comparing two dates and finding out number of days

homework.Well I am well past homework stage. here is the deal. I am a telecommunications engineer and trying to learn how to script in perl as my manager wants me to write some scripts for him :) . I would never even ask fellow monks for code for my homework. i would love to just install Date::Simple and simplify my problem. I have tried even installing it but my PPM doesnt even detect it when i refresh. I dont know what the problem is. i used time::local and tried finding out diff between two dates in seconds but i dont know i am getting really weird answers. but i get what you said. I shall try tht..if not then God Help :)
  • Comment on Re^2: Comparing two dates and finding out number of days

Replies are listed 'Best First'.
Re^3: Comparing two dates and finding out number of days
by agianni (Hermit) on Nov 15, 2007 at 18:07 UTC

    When all else fails install manually:

    1. download the tarball
    2. decompress it,
    3. cd to the directory created, something like Date-Simple-3.02,
    4. perl Makefile.PL will create a make file for you,
    5. make test will ensure that everything is working nicely,
    6. make all will install the module locally in the directory you are working in,
    7. The module will now be in the blib/lib directory; copy it to your development lib directory, use lib on that directory, and you can use Date::Simple.
    perl -e 'split//,q{john hurl, pest caretaker}and(map{print @_[$_]}(joi +n(q{},map{sprintf(qq{%010u},$_)}(2**2*307*4993,5*101*641*5261,7*59*79 +*36997,13*17*71*45131,3**2*67*89*167*181))=~/\d{2}/g));'
Re^3: Comparing two dates and finding out number of days
by blazar (Canon) on Nov 16, 2007 at 11:16 UTC
    I have tried even installing it but my PPM doesnt even detect it when i refresh.

    I personally believe you may want to add some repositories to your PPM's configuration.