[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] include GlobalSub in interchange.cfg
>
> My GlobalSub opens a socket to talk to another server. I have tested
> this as a perl program from my command line where it works fine. Here is
> part of the code:
>
> use IO::Socket;
> my $server = '206.191.4.228';
> my $port = 30000;
>
> my $sock = IO::Socket::INET->new(
> Proto => "tcp",
> PeerAddr => $server,
> PeerPort => $port,
> Reuse => 1
> );
> unless ($sock) { return("cannot connect to remote host"); }
>
> But when I try to run this through ic I get this error message:
>
> 127.0.0.1 uthu8k6e:127.0.0.1 - [31/March/2002:23:48:00 -0500] foundation
> /cgi-bin/foundation/aboutus.html Safe: Can't locate object method "new"
> via package "IO::Socket::INET" (perhaps you forgot to load
> "IO::Socket::INET"?) at (eval 128) line 34.
>
You might want to try installing the IO::Socket::INET module.
If its already installed "use IO::Socket::INET;" may help.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/