<?xml version="1.0" encoding="windows-1252"?>
<node id="995448" title="Re: Installing a module without administrative privilege?" created="2012-09-24 18:36:34" updated="2012-09-24 18:36:34">
<type id="11">
note</type>
<author id="757127">
tobyink</author>
<data>
<field name="doctext">
&lt;p&gt;Yes, you can. Exactly how easy it will be depends on which module. A pure Perl one should just be a matter of downloading the pm file, saving it with an appropriate name (e.g. for module Foo::Bar, use filename "C:\MyStuff\lib\Foo\Bar.pm") and then including the following at the top of your script:&lt;/p&gt;
&lt;c&gt;
use lib 'c:/MyStuff/lib';
&lt;/c&gt;
&lt;p&gt;Or run Perl with a command-line option telling it the location of your libraries.&lt;/p&gt;
&lt;c&gt;
perl -Ic:\MyStuff\lib myscript.pl
&lt;/c&gt;
&lt;p&gt;For XS modules that require compiling, it's more of a challenge, but assuming you have a compiler, ultimately possible.&lt;/p&gt;

&lt;p&gt;Of course, most modules have dependencies on other modules, so you'd need to make sure they are installed too.&lt;/p&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-757127"&gt;
&lt;small&gt;&lt;small&gt;
&lt;tt&gt;perl -E'sub Monkey::do{say$_,for@_,do{($monkey=&amp;#x5B;caller(0)]-&gt;&amp;#x5B;3])=~s{::}{ }and$monkey}}"Monkey say"-&gt;Monkey::do'
&lt;/tt&gt;&lt;/small&gt;&lt;/small&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
995443</field>
<field name="parent_node">
995443</field>
</data>
</node>
