j0e has asked for the wisdom of the Perl Monks concerning the following question:
Everything seems to work fine there. However, one of the variables is the hostname of a pop3 server ($CFG{pop3_host}). If I call Net::POP3->new($CFG{pop3_host}) the connection to the pop3 server times out. However, this does not happen if I simply define the pop3_host variable statically (i.e. $CFG{pop3_host} = "hostname"). Egad, what the heck is going on?open(CONFIG, "$cfgfile") or die "Can't open configuration file: $!"; while (<CONFIG>) { if (/^#/ or /^\n$/) { next; } else { chomp; s/\s//g; (my $n, my $v) = split(/=/); $CFG{$n} = $v; } } close(CONFIG);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Weird Net::POP3 problem
by dws (Chancellor) on Apr 13, 2001 at 05:50 UTC | |
by j0e (Acolyte) on Apr 13, 2001 at 05:57 UTC | |
by Fastolfe (Vicar) on Apr 13, 2001 at 06:21 UTC | |
by j0e (Acolyte) on Apr 13, 2001 at 06:49 UTC | |
by dws (Chancellor) on Apr 13, 2001 at 06:03 UTC | |
by j0e (Acolyte) on Apr 13, 2001 at 06:24 UTC | |
by j0e (Acolyte) on Apr 13, 2001 at 06:29 UTC | |
|
Re: Weird Net::POP3 problem
by j0e (Acolyte) on Apr 13, 2001 at 08:25 UTC | |
by dws (Chancellor) on Apr 13, 2001 at 08:27 UTC | |
by Fastolfe (Vicar) on Apr 13, 2001 at 23:08 UTC | |
by j0e (Acolyte) on Apr 14, 2001 at 05:22 UTC |