<p>Sets up the configuration of CPAN for this session. Must be called before <ahref="#install_module"class="podlinkpod"
>"install_module"</a>. Takes one boolean parameter. If true, <ahref="#install_module"class="podlinkpod"
>"install_module"</a> will install modules globally instead of to the local <emclass="code">lib/</em> directory. On most systems, you have to be root to do that.</p>
<dt><aname="install_module"
><codeclass="code">install_module</code></a></dt>
<dd>
<p>Installs a module from CPAN. Takes two arguments:</p>
><codeclass="code">$name</code> - The name of the module, just like you'd pass to the <codeclass="code">install</code> command in the CPAN shell.</a></dt>
><codeclass="code">$test</code> - If true, we run tests on this module before installing, but we still force the install if the tests fail. This is only used when we internally install a newer CPAN module.</a></dt>