in reply to scripts in relocatable perl
At first sight it seems to work though I still have to find out how to make this the beginning of all the scripts.#!/usr/bin/perl if (not $ENV{PORTABLE_XL_PERL}) { require FindBin; local $ENV{PORTABLE_XL_PERL} = 1; local $ENV{PERL5LIB} = ''; local $ENV{PERLLIB} = ''; exec("$FindBin::Bin/perl", $0, @ARGV); } print $^X;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: scripts in relocatable perl
by Corion (Patriarch) on Jun 28, 2009 at 13:02 UTC |