[Columbus-pm] use lib and BEGIN @INC

Jonathan Hogue jon at hogue.org
Fri Nov 12 13:45:01 PST 2010


What's the difference between
use lib "/somepath";
and
BEGIN{ unshift( @INC, "/somepath" ) };

When I do
use DQ::SomeModule after the "use lib" approach, it works, but not
after the BEGIN block, even though when I dump @INC, it shows the
/somepath for both scenarios.


More information about the Columbus-pm mailing list