Do any of the subs do some sort of conditional import into main or muck with the symbol table?<div><br><div>For example:</div><div><br></div><div><div>use 5.12.1;</div><div>sub foo { say 'test' }</div><div><br></div>
<div>if (rand > 0.5) {</div><div> undef *{foo};</div><div>}</div><div><br></div><div>foo();</div><div><br></div><div>50% of the time will print "test" and the other 50% will print:</div><div><br></div><div>
Undefined subroutine &main::foo called at <a href="http://test.pl">test.pl</a> line 8.</div><br><div class="gmail_quote">On Fri, Oct 29, 2010 at 11:47 AM, Jay Hannah <span dir="ltr"><<a href="mailto:jhannah@mutationgrid.com">jhannah@mutationgrid.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Oct 29, 2010, at 10:11 AM, Dan Linder wrote:<br>
> Status: 500 Content-type: text/html<br>
> Software error:<br>
> Undefined subroutine &main::MySubroutine called at MyCGI.cgi line 123<br>
><br>
</div><div class="im">> I'm asking my server admin to send me the Apache log files (it's a remote server I don't have access to) - is there anything else to look at?<br>
<br>
</div>Is it vanilla CGI (perl is executed for every page hit)? mod_perl? fastcgi? other?<br>
<br>
I'd write a little WWW::Mechanize program to hit it 1000 times and see how many times the error occurs. If you think it's load related somehow (really? eek) then you could use Apache Benchmark (ab) to nail the heck out of it and see if load does indeed cause a problem.<br>
<br>
Do you have another server with the same software to compare results?<br>
<br>
HTH,<br>
<br>
Jay Hannah<br>
Software Architect<br>
<a href="mailto:jhannah@mutationgrid.com">jhannah@mutationgrid.com</a> | <a href="http://mutationgrid.com" target="_blank">http://mutationgrid.com</a> | 1-402-598-7782<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Omaha-pm mailing list<br>
<a href="mailto:Omaha-pm@pm.org">Omaha-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/omaha-pm" target="_blank">http://mail.pm.org/mailman/listinfo/omaha-pm</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Andrew Sterling Hanenkamp<br><a href="mailto:sterling@hanenkamp.com">sterling@hanenkamp.com</a><br>785.370.4454<br>
</div></div>