in reply to Removing entries from @INC

As documented in perlrun if the first character of the library name after -M / -m is a dash the use is treated as no instead: perl -M-lib=/TO/REMOVE ...

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

Replies are listed 'Best First'.
Re^2: Removing entries from @INC
by perlancar (Hermit) on Feb 25, 2022 at 01:12 UTC
    Thanks! Now that you pointed it out, I vaguely remember reading about this years ago.