Jaap has asked for the wisdom of the Perl Monks concerning the following question:
the code above prints this:use strict; use warnings; use Net::POP3; ... if (my $pop3 = Net::POP3->new ($serverName, 'Timeout' => 30)) { if (my $numberOfMessages = $pop3->login ($user, $pass)) { if ($numberOfMessages == 0) { WriteLog ('info', "No new messages"); } else { WriteLog ('info', "Found " . ($numberOfMessages + 0) . " new obj +ect(s)"); for (my $messageNumber = 1; $messageNumber <= $numberOfMessages; + $messageNumber++) { WriteLog ('debug', "\$messageNumber: $messageNumber"); my $messageSize = $pop3->list($messageNumber) || print "Error: + $!"; } } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::POP3
by Jaap (Curate) on Oct 25, 2002 at 15:26 UTC |