Hi Everyone
Here is a head scratcher. I am using log4perl which contains a few eval statements and sometimes see strange activity - the script (which runs as a POE process) exits after a while (clarification, runs perfectly for a while and then exits) with the error:

Global symbol xxxx requires explicit package name at (eval 226185663) line yyyy.

(xxx being an internal log4perl variable but not always the same one)

Thing is that _many_ iterations of evaluating the code have gone by (like 226185663 above) and then the error is thrown. I can only conclude that log4perl is fine and something else is affecting this.

My questions:
1) I know that the number 226185663 is the eval number (i.e. incremented each time an eval is run), but I can't see how it gets so high - that amount of iterations would take months - is there any way to print this number on the console to see if something else increments it
2) Any idea on the problem at hand? I have lots of scripts using log4perl and only this particular one fails (but only after a long running time)

Thanks

Warren

In reply to nth eval of same code creates errors by Anonymous Monk

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.