http://www.perlmonks.org?node_id=1050428


in reply to ModPerl::Run & Fcntl

with PerlRun and not Registry? do i need to use some type of conditional use? can someone clear this up for me?

See ModPerl::PerlRun, Apache::PerlRun, http://perl.apache.org/docs/2.0/user/porting/porting.html, http://perl.apache.org/docs/1.0/guide/porting.html#Apache__PerlRun__a_closer_look

solutions 1) disable the warning ( PerlSetVar ReloadConstantRedefineWarnings Off, no warnings 'redefine'; 2) stop importing symbols, use fully qualified names like Fcntl::LOCK_EX() 3) do the importing outside your cgi (i know, what? lol) 4) something else, cause well :)

the dreaded 'subroutine redefined'

  • Comment on Re: ModPerl::Run & Fcntl ( Constant subroutine redefined )