in reply to Filtering failing under Apache & mod_perl?

When I hear that a source filter works in normal Perl environments but then fails under Apache & mod_perl, my mind jumps to the following line from BEGIN, UNITCHECK, CHECK, INIT and END in perlmod:

The CHECK and INIT code blocks will not be executed inside a string eval(), if that eval() happens after the end of the main compilation phase; that can be a problem in mod_perl and other persistent environments which use eval STRING to load code at runtime.
  • Comment on Re: Filtering failing under Apache & mod_perl?

Replies are listed 'Best First'.
Re^2: Filtering failing under Apache & mod_perl?
by clueless newbie (Curate) on Jul 19, 2010 at 19:49 UTC

    No doubt that I am being extremely dense, but I haven't seen anything in Filter::Util, Filter::Simple or Smart::Comments that hint that filtering does NOT work under mod_perl. Evidence to the contrary (other than "Your code isn't working under mod_perl") would be appreciated. Suggestions on how to make it work would be appreciated even more.