Hi,
I'm not sure if mailing to this list is the right way of getting help, if
not I apologize in advance. I'm trying to write a client for dos that talk
to a java servlet and given all the libraries available for perl I decided
to use djgpp/perl. This is what I did:
1. I downloaded perl542b.zip and csdpmi5b.zip
2. I set LFN=y in my autoexec.bat and I rebooted my machine
3. I unzipped the files with -w in a c:\perl
4. I set PER5LIB=c:\perl\lib\lib5 and PATTH=%PATH%;C:\PERL\BIN
5. I replaced all the c:\djgpp occurrences in c:\per\lib\perl5\Config.pm
with c:\perl
6. reboot

When I try to my program:

use IO::Socket;
$host = "www.sun.com";
$remote =
IO::Socket::INET->new(Proto=>"tcp",PeerAddr=>$host,PeerPort=>"http(80)") 
          or die "Cannot connect to $host";
$remote->autoflush(1);
print $remote "GET /index.html HTTP/1.0\n\n";
while(<$remote>){
   print
}
close $remote;


I get

Can't locate Socket.pm in @INC (@INC contains: C:\PERL\LIB\PERL5
c:/perl/lib/per
l5 c:/perl/lib/perl5/site c:/perl/lib/perl5/site .) at
C:\PERL\LIB\PERL5/IO/Sock
et.pm line 113.
BEGIN failed--compilation aborted at C:\PERL\LIB\PERL5/IO/Socket.pm line
113.
BEGIN failed--compilation aborted at Client.pl line 1.

Do you have any idea why?

Thanks
Alessandro 
 





Alessandro Di Bella
Software Developer
Blackpearl EU
Unit 20a, Becket Way Park West Business Park
Duiblin 12 - Ireland
Tel +353 1 6166715
Fax +353 1 6166711


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to