This makes me feel queasy. I think the problem results from SOAP::Lite lazy-loading your module after it has modified @INC:
I think you should be able to fix the problem by force-loading your class(es) instead of waiting until SOAP::Lite decides to load them:unless (defined(%{"${class}::"}) || exists($INC{join '/', split /::/ +, $class.'.pm'})) { # allow all for static and only specified path for dynamic binding +s local @INC = (($static ? @INC : ()), grep {!ref && m![/\\.]!} $sel +f->dispatch_to); eval 'local $^W; ' . "require $class"; die "Failed to access class ($class): $@" if $@; $self->dispatched($class) unless $static; }
use Wordbank::DCI::Server; use Wordbank::DCI::Another::Package; # and so on
In reply to Re^2: @INC problem with SOAP::Lite
by Corion
in thread @INC problem with SOAP::Lite
by john_oshea
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |