The simplest method of modifying @INC at runtime has been mentioned; it is, after all, just an array.
If you want all of the semantics of use lib at runtime you can also use:
use lib; ...; lib->import($path);I occasionally use this idiom with use base.
In reply to Re: Runtime use of "use lib <xxx>"
by Somni
in thread Runtime use of "use lib <xxx>"
by datalas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |