in reply to Re: how to update @INC at runtime to use custom modules in other folder?
in thread how to update @INC at runtime to use custom modules in other folder?

And ditto with tools/ToolLog.

The OP could use a rel2abs call in case he changes his directory later:

use File::Spec::Functions qw(rel2abs); use lib rel2abs(tools/DBQuery), rel2abs(tools/ToolLog);

Still, I'm wonderin, with such an elaborate directory structure, why the module name/namespace hasn't been extended to include the extra top level?

use File::Spec::Functions qw(rel2abs); use lib rel2abs('tools'); use DBQuery::Data::BackendMap; use ToolLog::Logging;