<?xml version="1.0" encoding="windows-1252"?>
<node id="1004009" title="Overriding default libs" created="2012-11-15 08:20:35" updated="2012-11-15 08:20:35">
<type id="115">
perlquestion</type>
<author id="1004006">
xajin24</author>
<data>
<field name="doctext">
&lt;p&gt; 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 &lt;code&gt; use lib /path/ &lt;/code&gt; as well as &lt;code&gt; BEGIN{} &lt;/code&gt; 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/...

&lt;code&gt;!/usr/bin/perl
use lib "/tmp/custom_module/";
use warnings;
use threads;       
print $INC{'threads.pm'}."&lt;&lt;&lt;&lt; Source of threads\n"; &lt;/code&gt;&lt;/p&gt;</field>
</data>
</node>
