can't run socket connection script on sco unix

Hello,
   I've written a socket connection script.  It runs on solaris but it won't work on SCO Unix .  It gives me error message:

Can't locate Socket.pm in @INC (@INC contains: /usr/local/lib/perl5/5.005/i486-p
c-sco3.2v5.0 /usr/local/lib/perl5/5.005 /usr/local/lib/perl5/site_perl/5.005/i48
6-pc-sco3.2v5.0 /usr/local/lib/perl5/site_perl/5.005 .) at ./client2.pl line 5.
BEGIN failed--compilation aborted at ./client2.pl line 5.              

Can somebody help me with this or is there any documantation for perl on sco?          
fareezaaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

guadalupeCommented:
This means that your instalation of perl does not include the module necessary (Socket.pm)  Use the Cpan module and install it or ask your sys admin to do it.  At worst give this a try...(no gurantees):

Locate the module socket.pm on the server where this script works.  Copy it to the server which doesn't work and leave it in the same folder as other modules that is -

/usr/local/lib/perl5/5.005/i486-p
c-sco3.2v5.0 /usr/local/lib/perl5/5.005 /usr/local/lib/perl5/site_perl/5.005/i48
6-pc-sco3.2v5.0 /usr/local/lib/perl5/site_perl/5.005 .

I that still fails copy it to the folder where your script that you are running is located.  Then add this line of code:

push(@INC, "./");



BEFORE the line

use socket.pm

If all this fails you have to have the module instaled.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
fareezaaAuthor Commented:
Thanks for the reply.  I've installed cgi.pm and now it runs!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.