http://qs321.pair.com?node_id=11126048


in reply to Re^2: Perl startup and excessive "stat" use on module load
in thread Perl startup and excessive "stat" use on module load

It's not rocket science, Smithers; it's brain surgery! However when compared against (possibly) unsetting an environment variable though that's a little bit more effort.

Slight snark aside though: yes that's certainly something OP should consider doing anyhoo if they're using the stock perl on their platform, @INC length issues not withstanding. If that also solves their stat overhead problem all the better.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^4: Perl startup and excessive "stat" use on module load
by haukex (Archbishop) on Dec 31, 2020 at 19:24 UTC
    However when compared against (possibly) unsetting an environment variable though that's a little bit more effort

    You're right of course, if the extra @INC dirs are coming from PERL5LIB then a new build of Perl won't help with that, so best to try that first :-)