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


Thanks for the advice. As I mentioned, the code was unfinished and makes you think it's hairy. I was short of ideas on the interval part of the code and that's where I needed help!

I didn't see any Apache::AccessLog in the CPAN site. Is it available anywhere else? OR you mean the ParseLog Module?

From your experience, which one is preferable, Date::Manip or Date::Calc?

Shall appreciate your valuable advice!
-Andy
  • Comment on Re: Re: Parsing of the web log file, access_log

Replies are listed 'Best First'.
Re: Re: Re: Parsing of the web log file, access_log
by gellyfish (Monsignor) on Jun 20, 2003 at 10:02 UTC

    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\
    

      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.