Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Perl net::pop3:sslwrapper

by roboticus (Chancellor)
on May 23, 2012 at 10:09 UTC ( #972003=note: print w/replies, xml ) Need Help??

in reply to Perl net::pop3:sslwrapper


When you present people with a huge wall of code, people will often skip right over your node, as it's not fun to read a billion lines of code. You should spend a little effort to reduce the program to a short example that demonstrates the problem. If you do, you'll often find the answer in the process.

Having said that, I gave the code a brief glance. This is just a guess, but I'm thinking that next statement (line 155) is exiting from the subroutine and skipping to the next EMail. If you instead wrap it with a loop and retry the connection, it may work more to your liking.


When your only tool is a hammer, all problems look like your thumb.

Replies are listed 'Best First'.
Re^2: Perl net::pop3:sslwrapper
by teja402000 (Initiate) on May 23, 2012 at 11:47 UTC

    Hi Roboticus , Ya i should have kept it short and sweet , my apologies. Wrap it up in a loop means ?


      Actually, now that I look again, it is wrapped up in a loop. The code is a bit much to digest as it is, so I don't see where the error is. I originally didn't see the while (1) you have up there, so I thought the next was throwing you to the next EMail message, thus skipping EMails when you have login faults.


      When your only tool is a hammer, all problems look like your thumb.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://972003]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2017-11-23 06:26 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (328 votes). Check out past polls.