in reply to Re: Re: Parsing of the web log file, access_log
in thread Parsing of the web log file, access_log

From your experience, which one is preferable, Date::Manip or Date::Calc?
Date::Calc is almost certainly preferable as it is a faster and smaller module - the only draw back is that it is mostly implemented in XS which means that you have to be able to compile C to be able to install it, but again that shouldn't be a problem in most places. Even the author of Date::Manip says in the documentation for that module:
Is Date::Manip the one you should be using? In my opinion, the answer is no about 90% of the time.
Look at the Date::Manip manpage if you want to read the reasons for that statement in full.

/J\
  • Comment on Re: Re: Re: Parsing of the web log file, access_log

Replies are listed 'Best First'.
Problem with loading and compiling the Perl module, Date::Calc
by Andy61 (Initiate) on Jun 20, 2003 at 18:43 UTC

    I downloaded the perl module, Date::Calc from cpan.org. The tarball is Date-Calc-5.3.tar.gz. I am using Cygwin on my PC (It has Windows 2000). Cygwin also has the gcc C compiler with it.

    As per the Install notes, I did 'perl Makefile.PL".

    I got this result.
    $ perl Makefile.PL Checking if your kit is complete... Looks good Warning: prerequisite Bit::Vector failed to load: Can't locate Bit/Vec +tor.pm in @INC (@INC contains: c:/Perl/lib c:/Perl/site/lib .) at (eval 4) line +3. Writing Makefile for Date::Calc Writing patchlevel.h for c:\Perl\bin\perl.exe (5.006001)
    Next, I did "make" and I got:
    $ make Makefile:814: *** missing separator. Stop.

    Has anyone come across this problem? Shall appreciate help on this.
    -Andy
      Warning: prerequisite Bit::Vector failed to load: Can't locate Bit/Vector.pm in @INC

      You have to fix this problem before doing make. Download and install Bit::Vector first.


        I saw these details in the INSTALL.txt of the Date::Calc module.

        Prerequisites:

        --------------

        Perl version 5.000 or higher, and an ANSI C compiler. (!)
        ^^^^^^
        If you plan to use the modules "Date::Calendar" or "Date::Calendar::Year" from this package, you will also need the module "Bit::Vector" version 5.7 or newer (which also needs an ANSI C compiler!).

        Otherwise you may safely ignore the warning message "Warning: prerequisite Bit::Vector 5.7 not found at ..." when running "perl Makefile.PL".

        You can install "Bit::Vector" at any time later if you change your mind.

        I do not plan to use the Calender & Year modules