The code you've posted is presumably from which ever version of Mail::POP3Client.pm you have installed. There are 3 problems with this.
- You don't indicate which line of the code you posted is line 422 from the error message.
- You don't say which version of the module you have installed
A quick look at CPAN turns up two versions, 2.13 & 2.14. The problem is that line 422 in both of these does not fall within the scope of the code you posted. In one version it is a blank line just below the Login() sub, in the other it falls part way through the Login() sub, but in neither case does the line look like it could produce the error message you are getting.
- Showing us the code producing the error messsage, even if you did indicate which line it was, without showing us the code that is calling the sub, and the values of the parameters you are passing when you call it, means we stand no chance of helping you.
As a quick debug, I recommend that you add a line
warn join'|', @_, $/;
as the very first line inside the Connect() sub, and see what values you are actually passing in. A pound to a penny, that one or more of the parameters you are passing is undef. If this is the case, you will see two adjacent vertical bars, ("...||...") somewhere in the output produced by the line above.
HTH.
Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.