<?xml version="1.0" encoding="windows-1252"?>
<node id="942680" title="Re^4: Including files" created="2011-12-09 09:38:16" updated="2011-12-09 09:38:16">
<type id="11">
note</type>
<author id="170442">
jdporter</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;
Did i get it right that
&lt;/i&gt;&lt;/blockquote&gt;

&lt;p&gt;
No.   Read [doc://lib].  &lt;c&gt;use lib 'cow';&lt;/c&gt; is the standard, clean alternative to &lt;c&gt;unshift @INC, 'cow';&lt;/c&gt;  It adds a directory to the search locations; it does &lt;i&gt;not&lt;/i&gt; identify or pull in any files into the current program.
&lt;/p&gt;

&lt;blockquote&gt;&lt;i&gt;
if i keep all my project files in the same directory, ... "use lib" will work "as expected".
&lt;/i&gt;&lt;/blockquote&gt;

&lt;p&gt;
No; if you do that, then you never need &lt;c&gt;use lib ...&lt;/c&gt;  at all, for the simple reason that &lt;c&gt;'.'&lt;/c&gt; is in @INC by default.
&lt;/p&gt;

&lt;div class="pmsig"&gt;&lt;div class="pmsig-170442"&gt;
I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies[523120|.]
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
393426</field>
<field name="parent_node">
942654</field>
</data>
</node>
