Do you know where your variables are? | |
PerlMonks |
nth eval of same code creates errorsby Anonymous Monk |
on Apr 01, 2008 at 11:45 UTC ( [id://677739]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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
Back to
Seekers of Perl Wisdom
|
|