in reply to ModPerl::Registry error

mod_perl analyses shebang line and adds use warnings if it contains -w switch, so yours

use warnings qw(redefine);
doesn't really make much sense, all warnings are enabled.

As a side note, passing arguments to the functions via global variables is not a good idea. All these local our ... look terrible and just asking for trouble. Even if they were not global, it's just to many of them, I'd recommend you to group some of them together into nice data structures.

Replies are listed 'Best First'.
Re^2: ModPerl::Registry error
by Anonymous Monk on Dec 20, 2011 at 10:29 UTC

    Hi, I posted the wrong code accidentally, I just wanted to turn on the warnings, to see if I could get some clue about the error message. I put back no warnings qw(redefine); but it still gives me the same errors. Any other ideas ?

    Apart from looking terrible, what is wrong with using local our variables?