thanks Steve,  that seems to work perfect<br><br><div class="gmail_quote">On Wed, Dec 16, 2009 at 3:27 PM, Steven Lembark <span dir="ltr">&lt;<a href="mailto:lembark@wrkhors.com">lembark@wrkhors.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Wed, 16 Dec 2009 14:44:08 -0600<br>
<div class="im">Jay Strauss &lt;<a href="mailto:me@heyjay.com">me@heyjay.com</a>&gt; wrote:<br>
<br>
</div><div class="im">&gt; Hi,<br>
&gt;<br>
&gt; I need to build a script, to be able to bring with me from customer to<br>
&gt; customer site.  I can count on running upon a recent version of Perl<br>
&gt; (version will change from customer to customer).  I can not install new CPAN<br>
&gt; modules at their site.  (generally I&#39;m on a heavily firewalled production<br>
&gt; box with no external http/ftp/ip access).   I will be running upon M$<br>
&gt; primarily.<br>
&gt;<br>
&gt; While at the customer I&#39;ll need to be able to make changes to the script as<br>
&gt; needed (and as I find needed new features or bugs).<br>
&gt;<br>
&gt; I have need for some modules on CPAN like date<br>
<br>
<br>
</div>You can run the thing with<br>
<br>
    /path/to/perl your-program<br>
<br>
which avoids issues in #! paths (no guarantee they will<br>
have Perl in the same place you do.<br>
<br>
At that point you can create a local directory with:<br>
<br>
    ./bin/<br>
    ./lib/<br>
    ./t/<br>
<br>
directories in it. Put anything you need to take with<br>
you -- including your own modules -- under ./lib. At<br>
that point you can start your code with:<br>
<br>
    use 5.008;<br>
    use strict;<br>
    use FindBin qw( $Bin );<br>
    use lib &quot;$Bin/../lib&#39;;<br>
<br>
to include the local library directory:<br>
<br>
    cd /blah/blah;<br>
    /path/to/perl  ./bin/frobnicate &#39;whatever&#39;;<br>
<br>
will set $Bin to &quot;/blah/blah/bin&quot; and leave you<br>
using &quot;/blah/blah/bin/../lib&quot; for your modules.<br>
<br>
Anything you need to take with you can be in<br>
the lib directory.<br>
<br>
Add the same thing to your ./t files and you can<br>
sanity check the thing with &quot;prove&quot; before trying<br>
to run the remaining code.<br>
<font color="#888888"><br>
--<br>
Steven Lembark                                            85-09 90th St.<br>
Workhorse Computing                                 Woodhaven, NY, 11421<br>
<a href="mailto:lembark@wrkhors.com">lembark@wrkhors.com</a>                                      +1 888 359 3508<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Chicago-talk mailing list<br>
<a href="mailto:Chicago-talk@pm.org">Chicago-talk@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a><br>
</div></div></blockquote></div><br>