Building perl-based applications with pp, I have found two related
problems with using the original perl's @INC:

    1) The packaged perl often prefers to use the .pl/.pm's available
       from . if present, instead of the PAR'ed versions.

    2) The packaged perl often prefers to use the packages of an already
       installed perl, leading to possible version conflicts.

Now, what is the least evil way to tell the packaged perl never to
look anywhere but in the PAR?

I found adding the following to the top of the application .pl file
works, both for PAR'ed and non-PAR'ed usage, but it feels fairly evil:

    BEGIN {
        my @refinc = grep { ref } @INC;
        @INC = @refinc if @refinc;
    }

Other than that, we're greatly impressed with PAR - good job.

PS: http://par.perl.org/ has been down for a while now?

Cheers,
-- 
Lars Balker Rasmussen                             Consult::Perl
                                                  http://consult-perl.dk

Reply via email to