http://www.perlmonks.org?node_id=932776

Generoso has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks, I am tring to run a SOAP example that was working a couple of years ago in perl 5.8

Now I have perl

This is perl 5, version 12, subversion 4 (v5.12.4) built for MSWin32-x86-multi-thread

#!perl -w use SOAP::Transport::HTTP; SOAP::Transport::HTTP::CGI -> dispatch_to('Temperatures') -> handle; package Temperatures; sub f2c { my ($class, $f) = @_; return 5 / 9 * ($f - 32); } sub c2f { my ($class, $c) = @_; return 32 + $c * 9 / 5; }

But I am getting the follwoing error:

Process started >>>
Can't locate Class/Inspector.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/SOAP/Lite.pm line 435.
BEGIN failed--compilation aborted at C:/Perl/site/lib/SOAP/Lite.pm line 435.
Compilation failed in require at C:/Perl/site/lib/SOAP/Transport/HTTP.pm line 17.
BEGIN failed--compilation aborted at C:/Perl/site/lib/SOAP/Transport/HTTP.pm line 17.
Compilation failed in require at F:\PerlSOAP\SOAPServer0.pl line 3.
BEGIN failed--compilation aborted at F:\PerlSOAP\SOAPServer0.pl line 3.
<<< Process finished.

Can some one help me resolve this error. Thank you.
aditional information
HTTP.pm line 17 use SOAP::Lite;
Lite.pm line 435 use Class::Inspector;

Replies are listed 'Best First'.
Re: SOAP and Perl 12
by Anonymous Monk on Oct 20, 2011 at 23:02 UTC

    Hi,

    It looks like you need to install Class::Inspector. Check for it in your Perl installation and check the directories in your @INC.

    J.C.

      I was blind, Thank you, that fix it