I have
PERL5OPT set to
-Mlib=/my/personal/lib, and I am encountering this strange behavior. The module
Devel::LeakTrace::Fast is located under
/my/personal/lib.
$ perl -e 'print join("\n", @INC)'
... lists /my/personal/lib among others
$ perl -MDevel::LeakTrace::Fast -e 1
Can't locate Devel/LeakTrace/Fast.pm in @INC (@INC contains: ... )
NOTE: /my/personal/lib NOT listed here
$ perl $PERL5OPT -MDevel::LeakTrace::Fast -e 1
(works no problems)
The documentation says that
PERL5OPT options are taken as if they appear on every perl command line. However, it looks as if those options are
appended to the end of the command line. Is that what's going on?
Is there a way to get PERL5OPT options to appear in front of the supplied command line options?