in reply to Net::POP3 doesn't connect

Enable debugging as mentioned in Net::POP3:

my $pop = Net::POP3->new($email_server, Debug=>1) or die "Can't connec +t to $email_server: $! \n";

Replies are listed 'Best First'.
Re^2: Net::POP3 doesn't connect
by Anonymous Monk on Mar 18, 2011 at 18:16 UTC
    Hi.

    Thank you for the response. I added the code exactly how you had it and it made no difference in the output. The only output is mine saying it can't connect to the server.

    Any other ideas?

      You seem to be running this as a CGI script... so you might want to look in the webserver's error_log, because (AFAIK) the debug prints will go to STDERR.

      Alternatively, redirect STDERR to STDOUT, so the debug messages will also be sent to the browser.  I.e. modify your script as follows:

      #!/usr/bin/perl use warnings; use strict; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser carpout); carpout(\*STDOUT); ...