Based on the insufficient evidence you've given, I would raise the following issues:

Maybe a global sanity-check for the input data would be worthwhile -- e.g. a separate perl script that reads in the same set of input data and simply tests the assumptions made by your database-loader script -- to settle those issues.

Better yet, figure out what those tests should be, and include them in the database loader script itself, so it can reject bad data instead of choking on it. (But sometimes it can be easier to treat data validation as a separate, prior step.)

Apart from that, it's just as important (or more so) to spot the line in your code where the script is hanging. If you start it with the debugger, you can just let it run until it looks to be in its "hung" state, then hit ^C to interrupt it. That will tell you which line was executing when the interrupt was handled, and you can start poking around, looking at values of variables to figure out how things are different from what you would expect.


In reply to Re: Perl crossing arms silently: loop stoping without any error message by graff
in thread Perl crossing arms silently: loop stoping without any error message by Andre_br

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.