"be consistent" | |
PerlMonks |
@INC problem with SOAP::Liteby john_oshea (Priest) |
on Jan 09, 2007 at 19:16 UTC ( [id://593770]=perlquestion: print w/replies, xml ) | Need Help?? |
john_oshea has asked for the wisdom of the Perl Monks concerning the following question: Hi all, I'm hoping one of you kind souls can point out where, exactly, I'm being a bit dim, as the problem I have, well it just has to be something really simple, but I just can't see it... I have a SOAP server:
...which is called from the following client:
...and the server calls the following module:
All of which works perfectly, calls the hello method, and prints out quite a reasonable @INC value. Until I add in use Data::Dumper immediately after the use Carp line in the module, at which point I get the following (excerpted) error when I turn tracing on:
...i.e. it appears that @INC is getting zapped to only contain the current module's directory. I can't even use lib... something to get around it as it can't use 'lib'. Can anyone reproduce this? Am I being a complete klutz? Hay-ulp... (OSX 10.4.8, Perl 5.8.8, SOAP::Lite 0.69) Update: Thanks to both almut and Ultra for both speedy and accurate replies.
Back to
Seekers of Perl Wisdom
|
|