Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: @INC problem with SOAP::Lite

by Corion (Pope)
on Jan 10, 2007 at 11:53 UTC ( #593882=note: print w/replies, xml ) Need Help??


in reply to Re: @INC problem with SOAP::Lite
in thread @INC problem with SOAP::Lite

This makes me feel queasy. I think the problem results from SOAP::Lite lazy-loading your module after it has modified @INC:

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; }
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:

use Wordbank::DCI::Server; use Wordbank::DCI::Another::Package; # and so on

Replies are listed 'Best First'.
Re^3: @INC problem with SOAP::Lite
by john_oshea (Priest) on Jan 10, 2007 at 12:52 UTC

    Hmmm. Yes. Now that I've done some more reading in the meantime, I get it. I think.. ;-)

    For anyone else who may get stuck on this, Corion's suggestion is the 'static linking' option mentioned in the security section of the SOAP::Lite documentation.

    Thanks for the help - much appreciated.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://593882]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (1)
As of 2021-10-27 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (91 votes). Check out past polls.

    Notices?