There could be a number of reasons for this, most of which are outside the control of the Perl program. In the first instance you should print out the actual error message from the system in the case where the returned socket is undef. You could do something like:
if ( $pop3 ) { # do something with the socket } else { print "error in socket: $!"; }
If you are trying to create a POP3 client you might be better off using a pre-existing module such as Net::POP3 or Mail::POP3Client which will do all the work for you.
/J\
In reply to Re: IO::Socket error in CGI on apache
by gellyfish
in thread IO::Socket error in CGI on apache
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |