Skip Menu |

This queue is for tickets about the libnet CPAN distribution.

Report information
The Basics
Id: 17765
Status: rejected
Priority: 0/
Queue: libnet

People
Owner: Nobody in particular
Requestors: bmj465 [...] truman.edu
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.19
Fixed in: (no value)



I believe there is an error in pop3.pm. When I try to run the following script, I get an error that says: "Use of uninitialized value in numeric eq (==) at POP3.pm line 57" and it won't connect to the server. #!/usr/bin/perl -w my $host = "myComputer.myDomain.com"; my $timeout = 30; my $pop = new Net::POP3( $host, Timeout => $timeout ) || &failed; print "It worked!"; $pop->close; exit; sub failed( print "\nAuthentication was not successful . POP3 service most likely down...\n"; exit; ) I installed Net::POP3 using ppm and reinstalled it to no avail. I have also tryed it on different machines with ActivePerl versions 5.8.0 and 5.8.7 (both under Windows 2000 and XP) and and the same error pops up. However, when I change the value of $host to another pop3 server, the script executes perfectly. Because of this, I'm uncertain as to the cause of the bug or of any manner of fixing it.
Subject: Re: [rt.cpan.org #17765]
Date: Tue, 21 Feb 2006 18:31:17 -0600
To: bug-libnet [...] rt.cpan.org
From: Graham Barr <gbarr [...] pobox.com>
On Feb 20, 2006, at 2:26 PM, Guest via RT wrote: Show quoted text
> I believe there is an error in pop3.pm. When I try to run the > following > script, I get an error that says: > > "Use of uninitialized value in numeric eq (==) at POP3.pm line 57" > > and it won't connect to the server.
This would only happen if the tcp connection did suceed and then the server closed the connection. Can you add ,Debug => 1 to the arguments to new. It should, hopefully, give some output on STDERR Graham.