Unfortunately there isn't enough detail in your posts to make any sort of educated guess as to what is happening, but my feeling is that you are trying to solve too big a problem. Allow me to explain:

You seem to have written a large amount of code to solve your complete problem. Now that it compiles, you are running it only to find that it does not give you the answers you expect. This type of programming is so common that it has a name - 'big bang programming', and it is not to be recommended.

I suggest that you start to analyze your problem using a more iterative approach:

After the individual 'sub's are working to your satisfaction, you can start linking the 'subs' together. You should only attempt to string together an extra 'sub' for each iteration of your testing. Make sure that each combination of 'subs' gives you the expected output for each input. You will more easily identify which 'sub' is causing your problem since the actual output will not match the expected output.

Give yourself as much information as possible by either running your script with the '-d' flag on the command line ('debug' mode) or by liberally sprinkling your code with informative 'print' statements. These 'print' statements are especially useful in the following circumstances:

After following this advice you should be able to break the problem down to the most important and relevent lines (say 12 or 15) and be able to post a very short and direct question to this forum (e.g. for the given input (blah blah blah) the following code produces (x x x x) when I was expecting (y y y y), can somebody please explain?)

rdfield


In reply to Re: Re: Re: Re: Re: POP access using System users and DB authentication by rdfield
in thread POP access using System users and DB authentication by surps

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.