in reply to perl cant find it anymore!

Yes, there is such a config file, and if you move things around it will point to the wrong place and not be able to find modules. Also, you will have trouble installing new modules. The file is called Config.pm, and is located in a directory somewhere like /opt/perl5/lib/5.6.0/PA-RISC2.0. It is created in the 'Configure' step when perl is compiled.

Update: As noted below you can't fix this with hand-editing. You can find out what your INC path is with perl -V.

Much better is to put perl where Config.pm expects it to be, or recompile perl. You need the ANSI C compiler to compile perl on HP-UX, though.

You can see what is in Config.pm by inspecting the code in the module, or with this code:

#!/opt/perl5/bin/perl use strict; use Config; for (keys %Config) { print "$_ = $Config{$_}\n"; }

You can use the INC path methods above to get the use Config line to work.

It should work perfectly the first time! - toma

Replies are listed 'Best First'.
(tye)Re: perl cant find it anymore!
by tye (Sage) on Jun 18, 2001 at 21:26 UTC

    You should recompile Perl not because Config.pm is hard to edit by hand but because the values for @INC are compiled into the perl binary, not read from Config.pm! Otherwise, how would Perl find Config.pm? (:

    Now, MakeMaker does read Config.pm so you can affect where modules get installed by modifying that file.

            - tye (but my friends call me "Tye")