Re: Prototype Mismatch in ModPerl::PerlRun

2021-05-18 Thread Daniel Ragle
Was wrong on one of my statements: use Digest::SHA qw(sha256) _does_ produce the warning, after all. And with use Time::HiRes qw(usleep tv_interval) usleep produces the warning, but tv_interval does not. tv_interval is directly defined in Time::HiRes, the rest is C code. Maybe only XS loaded co

Re: Prototype Mismatch in ModPerl::PerlRun

2021-05-18 Thread Daniel Ragle
Ed, thanks for your response! I had already tried most of your suggestions: Putting the module load in the startup (with or without the import) didn't make a difference (still get the prototype mismatch on the second and subsequent runs of the script); and yah, importing nothing and referring

Re: Prototype Mismatch in ModPerl::PerlRun

2021-05-14 Thread Edward J. Sabol
Hi, Daniel. This error can happen even under regular Perl in some circumstances when a package redefines a core function ((like what importing Time::HiRes does here with time). I would change "use Time::HiRes qw(time);" to "use Time::HiRes ();" and then change "time()" on line 13 to "Time::HiRe

Prototype Mismatch in ModPerl::PerlRun

2021-05-14 Thread Daniel Ragle
Greetings, I'm investigating short term solutions for site performance (long term is a full rewrite of the app) and I'm working for the first time with ModPerl::PerlRun (and ModPerl::PerlRunPrefork, both seem to exhibit the same behavior) and feel like I'm missing something obvious. I have t