Eric Wilhelm wrote:
But, they add 5.n.n directories which don't exist.
They don't exist on disk _now_, because you installed late in the game. RedHat installs 5.8.8 on top of 5.8.7, on top of 5.8.6, etc. back to the first release of Perl they shipped with that release of RH Enterprise. Thus every *newer* RPM of Perl includes hardcoded @INC entries for any possible *older* @INC paths, even if they don't exist on the current installation.
When I change @INC on a normal perl, I get automagic 5.n.n directories iff they exist. It appears from the reports that peRHl adds "5.n.n"x12 regardless of whether there's anything there.
You mean when you *build* Perl, you only get the existing 5.n.n directories. You didn't specify the @INC entries, whereas RH does. I'll bet I can recreate this behavior on _any_ Perl by doing the same thing (tuits overnighted to the address below would be helpful).
printing a file full of "use lib 'foo'\nuse lib..." and having run_perl_script() do -Mthatfile.)
I think that method above is problem the safest. Perl has no problem with non-existing @INC entries (it just loops over everything in @INC until it finds what it is looking for).
John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748