On Friday 22 Jan 2010 13:07:13 newbie01 wrote:
> Hi all.
>
> Am wanting to change the location of @INC to point to where some of
> the date's pm files are. Can anyone please advise if it is possible to
> have the use lib on a single line or is this not possible?
>
> #!/usr/bin/perl
>
First of all, make sure you add "use strict;" and "use warnings;".
Afterwards, reading from perldoc lib:
<<<
use lib LIST;
>>>
You can do something like:
<<<
use lib "/path/to/dir1", "/path/to/dir2";
>>>
> use lib '/oracle/product/10.2.0/perl/lib/site_perl/5.8.3/HTTP';
> use Date;
You shouldn't load HTTP::Date; this way. You should do:
<<<
use HTTP::Date;
>>>
From the appropriate place.
> use lib '/oracle/product/11.1.0/sysman/admin/scripts';
> use DateManip;
What is DateManip? Why aren't you using a CPAN module?
Regards,
Shlomi Fish
>
> So far, I tried
>
> use lib '/oracle/product/10.2.0/perl/lib/site_perl/5.8.3/HTTP /oracle/
> product/11.1.0/sysman/admin/scripts';
> use lib '/oracle/product/10.2.0/perl/lib/site_perl/5.8.3/HTTP;/oracle/
> product/11.1.0/sysman/admin/scripts';
>
>
> Thanks in advance
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Interview with Ben Collins-Sussman - http://shlom.in/sussman
Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/