You need to do a little more work. This isn't a one-on-one email support forum.

First: Are you accessing a database, or reading a file? Your question is unclear on that point.

Second: Post 25 lines of code that demonstrates your code's inability to retrieve data. Be sure to replace actual database login credentials with some placeholders in your post, for your own security. The code needs to be capable of compiling, unless your question is specifically about why it's not compiling.

Third: Post what the expected output is, and what output you're getting (including error messages). If you're not getting any error messages, investigate why.

Once you're ready to provide that information we'll be able to provide useful help.

Update: So you have now posted code. But instead of reducing your problem down to 25 lines of runnable code that we can use to demonstrate to ourselves the problem, you dumped on us 160 lines of code that doesn't compile. Laziness demotivates many of us.


Dave


In reply to Re: Perl program will not retrieve data from file by davido
in thread Perl program will not retrieve data from file by PilotinControl25

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.