in reply to Want to use Date module

I loke Date::Simple for these kind of calculations:
use Date::Simple qw(date); for (my $d = date('2009-05-16'); $d <= date('20090602'); $d++) { print $d, "\n"; }

Replies are listed 'Best First'.
Re^2: Want to use Date module
by Rocko19 (Acolyte) on Jun 29, 2009 at 09:14 UTC
    Hi,
    Thanks for your reply. I was trying to use Date::Simple but got the following error.
    Can't Locate Date/Simple.pm in @INC <@INC contains: C:/Perl/site/lib.
    Please suggest how to include this module in my script.

    Thanks
    Rocko

      That is probably because you haven't got Date::Simple installed. From the error, it looks like you are using Activestate perl. In that case, fire up the package manager (ppm) and ask it to install Date::Simple.