Perl EPIC Not recognising installed CPAN modules
- by Recc
Eclipse on a mac, was working fine adding new modules until I Installed Text::CSV_XS which Eclips doesn't recognise as added to @INC For instance
use strict;
use SOAP::Transport::HTTP;
SOAP::Transport::HTTP::CGI->dispatch_to('C2FService')->handle;
BEGIN {
package C2FService;
use vars qw(@ISA);
@ISA = qw(Exporter SOAP::Server::Parameters);
use SOAP::Lite;
sub c2f {
my $self = shift;
my $envelope = pop;
my $temp = $envelope->dataof("//c2f/temperature");
return SOAP::Data->name(
'convertedTemp' => ( ( ( 9 / 5 ) * ( $temp->value ) ) + 32 ) );
}
}
use SOAP::Transport::HTTP; is marked as error if I comment it out use SOAP::Lite; is in turn marked as an error, not found etc the usual if a module is not installed.
Both are installed with CPAN and
$ perl -c soap-test.pl
post-code-check.pl syntax OK
Perl is fine CPAN tests are all pass, the code works, only EPIC lags behind.
$ pwd && ls
/opt/local/lib/perl5/site_perl/5.12.4/SOAP
Client.pod Lite Server.pod
Constants.pm Lite.pm Test.pm
Data.pod Packager.pm Trace.pod
Deserializer.pod SOM.pod Transport
Fault.pod Schema.pod Transport.pod
Header.pod Serializer.pod Utils.pod
And if I have use errors in the start of my files the rest of the source is not error checked..