in reply to Undef on POP3 method
is failing. I would suspect the '$host' part. You are passing to new() a string containing $host, not the value of $host. Since $host is not specifically defined in your login() subroutine, it must be a global to have any value there.$pop3 = Net::POP3->new('$host');
I have not used POP3, but I suspect that $host is not what it expects. Try removing the single-quotes (which do not interpolate the value of any variables in them), or (yuck!) replacing them with double-quotes and see if it works correctly.
Russ
Brainbench 'Most Valuable Professional' for Perl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Undef on POP3 method
by elusion (Curate) on Jul 31, 2000 at 04:50 UTC | |
by young perlhopper (Scribe) on Jul 31, 2000 at 04:56 UTC | |
by Russ (Deacon) on Jul 31, 2000 at 04:54 UTC | |
by elusion (Curate) on Jul 31, 2000 at 05:05 UTC |