Thank you Randolf for your answer.
Of course for the "subroutine redefined" messages, I agree.
But what about the "Prototype mismatch" messages ?
Ben
> On 22 Aug 2017, at 16:50, Randolf Richardson wrote:
>
> The "subroutine redefined" warning is a normal side-effect of the
> Apache2::R
The "subroutine redefined" warning is a normal side-effect of the
Apache2::Reload module providing information about which modules were
effected. I use it on development servers, but not on production
servers, because I want better performance from my production
environments.
Thank you for your answer !
I only get these errors when module is reloaded by Apache2::Reload.
Not during the next execution of the scripts using the module.
Only when it is reloaded.
I replaced :
use JSON qw(to_json from_json);
by :
use JSON;
And I now get an additional message when the module
I think JSON module export from_json and to_json by default.
so this just works fine for me:
use strict;
use warnings;
use JSON;
print to_json({a=>1,b=>2});
Your code seems did't pass arguments to the methods correctly?
> On August 22, 2017 at 6:25 PM Ben RUBSON wrote:
>
>
> Hello,
>
> I
Hello,
I use Apache2::Reload on my dev env :
PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
PerlSetVar ReloadDirectories "/d/"
It works perfectly.
Of course I get the warnings "Subroutine redefined" when modules are reloaded.
But I also get :
Prototype mismatch: sub Functions::to_jso