If you installed the module to your system's "default" Perl install, it
should be found automatically by the use statement.

use DateTime; 

If it's not found, then I'm guessing that you may have more than one
Perl install (assuming Unix) and the "default" Perl install, i.e. the
one occurs first in your path, is not the one you installed DateTime to.
I'd suggest checking if multiple Perl executables are in your path using
the 'which Perl' command.  Or, just check your path to make sure the
Perl that does appear is the one you installed the DateTime module to.

If you find two different Perl instances and say the 2nd one is the one
to which you installed DateTime, you can either change your path to
prefer the 2nd version of Perl or you can write all your scripts
requiring DateTime to specifically include the path, e.g.
/home/user/perl5/lib, that you installed it to using this syntax:

use lib qw(/home/user/perl5/lib);

Hope this helps...

Bobby

-----Original Message-----
From: Robert A. Rawlinson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 30, 2007 10:42 AM
To: datetime@perl.org
Subject: Problem with TimeZone.pm

I am trying to use TimeZone.pm in a perl program. However it doesn't 
find the module when I try to run the program. Is there a special place 
where the TimeZone.pm module should be located?
Thanks for any help
Bob R

Reply via email to