in reply to Re^2: dynamically expand @INC beyond BEGIN
in thread dynamically expand @INC beyond BEGIN
Note that require "$lib/Module.pm" would also have worked if $lib contains an absolute directory (and probably even if it doesn't?)
You could also make the change to @INC temporary using local @INC = ( $lib, @INC );.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: dynamically expand @INC beyond BEGIN
by somekindafreak (Acolyte) on Apr 17, 2012 at 20:20 UTC |