XP is just a number | |
PerlMonks |
Re^2: @INC not reflecting correctlyby syphilis (Archbishop) |
on Aug 27, 2021 at 03:44 UTC ( [id://11136115]=note: print w/replies, xml ) | Need Help?? |
Then, every time perl is invoked, @INC is set as desired. Actually, that's not quite always so. This was not what I expected: I expected that command to fail because Math::BigInt does not exist in any of those @INC directories that are listed. (It exists only in one of my original @INC directories.) I expected that command to do the same as the following one-liner (in which PERL5OPT is unset): But instead it processed the -MMath::BigInt before it processed the -MMy_INC. That is, it does the same as: Is it possible to have perl process the contents of PERL5OPT *before* any -M... command line switches are processed ? UPDATE: I don't think this would be an issue for dirtdog because, IIUC, the directories in his original @INC don't exist anyway. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|