Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#! /usr/bin/perl -w use strict; use Net::POP3; my $POPObj = Net::POP3->new("mail.myisp.net", Timeout => 10); my $Ret = $POPObj->login("AnonMonk", "BrokenPass"); if ($Ret) { if ($Ret eq "0E0") { print "You have no messages...\n"; } elsif ($Ret) { print "You have $Ret messages\n"; } } else { print "Something went wrong...\n"; } $POPObj->quit();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::POP and the uninitialized numeric
by Brovnik (Hermit) on Jun 12, 2001 at 18:50 UTC | |
by Anonymous Monk on Jun 12, 2001 at 19:14 UTC |