Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^2: how to use Net::POP3::SSLWrapper

by swilting (Beadle)
on Jan 21, 2012 at 17:54 UTC ( #949172=note: print w/replies, xml ) Need Help??

in reply to Re: how to use Net::POP3::SSLWrapper
in thread how to use Net::POP3::SSLWrapper

the script fail during the prime parcourt of the loop I made ​​some minor changes to the code

print "connecting to $server..\n"; my $pop = Net::POP3->new($server, Port => 995) or die "error: can't connect to $server: $!\n"; print "ok\n";

this is my error to stderr

localhost ~]$ perl connecting to ok Use of uninitialized value in concatenation (.) or string at deletemai line 28. mail box size: 12914033 313 unread mail(s). last read mail was number Use of uninitialized value in numeric eq (==) at /usr/lib/perl5/5.8.8/ +Net/ line 311. Use of uninitialized value in numeric eq (==) at /usr/lib/perl5/5.8.8/ +Net/ line 311. ...etc...

Replies are listed 'Best First'.
Re^3: how to use Net::POP3::SSLWrapper
by GrandFather (Sage) on Jan 21, 2012 at 22:33 UTC

    Examining the first waarning message and the following output indicates that $last is undef which implies that my $last = $pop->last; failed. The following warnings pertaining to badness inside is pretty much consistent with $pop already being in a bad state.

    What did the code look before you changed it?

    True laziness is hard work

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://949172]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2016-10-25 23:33 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (330 votes). Check out past polls.