problem installing date::calc on win box

N

news-acct

running ppm install date::calc on win xp sp2.
I get the following reply:::
Searching for 'date::calc' returned multiple results. Using 'search' ins
Searching in Active Repositories
1. Date-Calc [5.3] Gregorian calendar date calculations
2. Date-Calc [5.4] Gregorian calendar date calculations
3. Date-Calc-Iterator [1.00] Iterate over a range of dates

Is this the correct module for Win XP? I can install it using ppm
install date-calc. however, I can not use it

get error msg:
D:\scram\ner\ko\be> perl date1.pl
Can't locate date.pm in @INC (@INC contains: C:/Perl/lib
C:/Perl/site/lib .) at
BEGIN failed--compilation aborted at date1.pl line 2.

the module does exist in: C:\Perl\site\lib\Date\Calc.pm

thanks
 
S

Sisyphus

news-acct said:
get error msg:
D:\scram\ner\ko\be> perl date1.pl
Can't locate date.pm in @INC (@INC contains: C:/Perl/lib
C:/Perl/site/lib .) at
BEGIN failed--compilation aborted at date1.pl line 2.

the module does exist in: C:\Perl\site\lib\Date\Calc.pm

You should also have shown us what date1.pl contains. The error message
indicates that somewhere in your script you have written:

use date;

If you want to load the Date::Calc module, you need to change that to:

use Date::Calc;

Cheers,
Rob
 
R

Ron Savage

On Thu, 1 Sep 2005 14:19:40 +1000, news-acct wrote:

Hi
get error msg:
D:\scram\ner\ko\be> perl date1.pl
Can't locate date.pm in @INC (@INC contains: C:/Perl/lib
C:/Perl/site/lib .) at

But Perl is a case-sensitive language. You didn't write:

use date;

or

use data::calc;

by any chance?

If so, oh dear.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top