lotsToLearn
Programmer
I need to get some info on the ENV and Socket modules that are defined in perl. <br>
<br>
How can I be sure that perl is finding these modules? <br>
<br>
I have some perl code that includes the following lines. <br>
<br>
use lib "$ENV{HOME}";<br>
<br>
What does this do. How I can list the Environment defined in this module. <br>
<br>
I have another chunk of code that gets a socket. <br>
<br>
$nRet = socket(SOCK, PF_INET, SOCK_STREAM, $Protocol);<br>
<br>
When I run this program from the command prompt the socket is created and the program continues. However when I call the program from a Java application I don't get the socket connection. I suspect the program can't find the socket module. How can I make it find this module. <br>
<br>
Thanks for all of your help. <br>
<br>
How can I be sure that perl is finding these modules? <br>
<br>
I have some perl code that includes the following lines. <br>
<br>
use lib "$ENV{HOME}";<br>
<br>
What does this do. How I can list the Environment defined in this module. <br>
<br>
I have another chunk of code that gets a socket. <br>
<br>
$nRet = socket(SOCK, PF_INET, SOCK_STREAM, $Protocol);<br>
<br>
When I run this program from the command prompt the socket is created and the program continues. However when I call the program from a Java application I don't get the socket connection. I suspect the program can't find the socket module. How can I make it find this module. <br>
<br>
Thanks for all of your help. <br>