http://www.perlmonks.org?node_id=749767


in reply to PERL5OPT and -M

If you set PERL5OPT to -I/my/personal/lib that should take effect before any "-M" options are processed. Or use PERL5LIB (unless you need to run code in taint mode).

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.