in reply to How to restore @INC

Basically, for pre-5.8.8 Perls, you have to either edit the perl binary and fix the hardcoded values or you have to recompile Perl.

Supposedly, for younger Perls (5.10, 5.8.8+), Perl can set up @INC relative to itself even on operating systems where this was claimed to be impossible, such as all unixish operating systems.

The easy way out would be to just set $ENV{PERL5LIB} to the entries you want in @INC or to recompile Perl with the appropriate installation path already set up.

Replies are listed 'Best First'.
Re^2: How to restore @INC
by andreas1234567 (Vicar) on Nov 18, 2008 at 08:49 UTC
    $ENV{PERL5LIB}
    Thanks, I did not think of that. It turns out one could also do a reinstall of the perl binary:
    # rpm -e --nodeps perl # yum install perl
    --
    No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]