xajin24 has asked for the wisdom of the Perl Monks concerning the following question:
Hi perlmonks community, I do not have permissions to install modules on my machine so I am looking for a round-about way of doing it. Currently I downloaded the desired module from CPAN and installed it in a local directory. The current machine I am working on is running perl 5.8.8 and has the 1.07 version of threads and I need it to be 1.6+. I've tried use lib /path/ as well as BEGIN{} to try to force my perl script to use the lib I need. The problem is that whenever I try to force the use of my lib, it is still referring to the default one in /usr/lib64/perl5/5.8.8/...
!/usr/bin/perl use lib "/tmp/custom_module/"; use warnings; use threads; print $INC{'threads.pm'}."<<<< Source of threads\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Overriding default libs
by space_monk (Chaplain) on Nov 15, 2012 at 14:23 UTC | |
|
Re: Overriding default libs
by tobyink (Canon) on Nov 15, 2012 at 13:30 UTC | |
by xajin24 (Initiate) on Nov 15, 2012 at 13:35 UTC | |
by tobyink (Canon) on Nov 15, 2012 at 14:15 UTC | |
by xajin24 (Initiate) on Nov 15, 2012 at 14:19 UTC | |
by tobyink (Canon) on Nov 15, 2012 at 14:24 UTC | |
by Anonymous Monk on Nov 15, 2012 at 14:15 UTC | |
by Anonymous Monk on Nov 16, 2012 at 03:13 UTC | |
|
Re: Overriding default libs
by Anonymous Monk on Nov 15, 2012 at 14:12 UTC |