On Tue, May 27, 2008 at 11:09 PM, Henry Wu <[EMAIL PROTECTED]> wrote:
>  I packaged an executable abc.exe from perl script using pp.  Worked
> fine for most of users, But some users have existing old perl
> installation and have environmental variable PERL5LIB set. When these
> users run the abc.exe, they saw the following messages.
> ...
> So is there a way to package exe file to ignore the PERL5LIB
> environmental variable using pp ?

AFAICT, no. But I think this is a useful suggestion:
as pp-packed executable should be considered self-contained,
they should not be subject to external settings like PERL5LIB
(Principle of Least Surprise).
But there are probably use cases for obeying PERL5LIB, too.

So I suggest:
- pp-packed executables should ignore PERL5LIB
- but they treat PAR_PERL5LIB (or some such) the same way as
  "regular" Perl scripts treat PERL5LIB

Looks like this could be implemented by a few lines in function
par_init_env() in  myldr/utils.c.

What do others think?

Cheers, Roderich

Reply via email to