in reply to Re: Extracting Line from Text file over 45 days old
in thread Extracting Line from Text file over 45 days old

I replaced <data> with database.txt but when I ran it got the following error

Can't locate Date/Parse.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at ./over45.sh line 4. BEGIN failed--compilation aborted at ./over45.sh line 4.

Is Date::Parse not supported on my virtual server or is something else wrong.

Thanks,
Chris

  • Comment on Re^2: Extracting Line from Text file over 45 days old

Replies are listed 'Best First'.
Re^3: Extracting Line from Text file over 45 days old
by McDarren (Abbot) on Jan 12, 2008 at 17:02 UTC
    That error most likely means that the Date::Parse module is not installed. Installing it should be as simple as:
    perl -MCPAN -e "install Date::Parse"

    Cheers,
    Darren :)

      Or, if you are running your program on a server run by a hosting company which it sounds like you are, ask your hosting company to install the module for you if you don't know how.