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"><<a href="mailto:lembark@wrkhors.com">lembark@wrkhors.com</a>></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 <<a href="mailto:me@heyjay.com">me@heyjay.com</a>> wrote:<br>
<br>
</div><div class="im">> Hi,<br>
><br>
> I need to build a script, to be able to bring with me from customer to<br>
> customer site. I can count on running upon a recent version of Perl<br>
> (version will change from customer to customer). I can not install new CPAN<br>
> modules at their site. (generally I'm on a heavily firewalled production<br>
> box with no external http/ftp/ip access). I will be running upon M$<br>
> primarily.<br>
><br>
> While at the customer I'll need to be able to make changes to the script as<br>
> needed (and as I find needed new features or bugs).<br>
><br>
> 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 "$Bin/../lib';<br>
<br>
to include the local library directory:<br>
<br>
cd /blah/blah;<br>
/path/to/perl ./bin/frobnicate 'whatever';<br>
<br>
will set $Bin to "/blah/blah/bin" and leave you<br>
using "/blah/blah/bin/../lib" 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 "prove" 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>