in reply to Re: How to check number of messages using Net::POP3?
in thread How to check number of messages using Net::POP3?

Yes I did. Didn't improve either. If you have a look in Net/POP3.pm you see that login only calls user() and pass() after each other.
  • Comment on Re: Re: How to check number of messages using Net::POP3?

Replies are listed 'Best First'.
Re: Re: Re: How to check number of messages using Net::POP3?
by Roger (Parson) on Dec 23, 2003 at 23:34 UTC
    You could use the Data::Dumper module to do some inspection for you...

    use Data::Dumper; ... my $msg_count = $pop->login( $user, $pass ) or do { print "Could not login.\n"; next; }; print Dumper($msg_count);
    and see if the returned value is truly undef or not.