Well I can't see any problems on those lines that you mention. The only error I see is on line 146. You are not ending your statement. (This may just be a copy and past problem.)

Also I have been running it for a few hours and it has been fine, my best advice would be to check your /var/logs/ directory and see if it is writing a log entry when it fails. (It probably is)

How long does it run before it fails? If it is months ... then maybe there is a memory problem. What kind of system does this run on?

All in all, need more info to find the problem. The code is syntacically (sp?) ok.

- f o o g o d


In reply to Re: wont run for long with strict. by foogod
in thread wont run for long with strict. by rdnzl

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.