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


in reply to Re^3: Memcache 'get' returns undef running under mod_perl (debug)
in thread Memcache 'get' returns undef running under mod_perl

The problem lay in the FilterHandler's invocation of other classes.

The code looked a little like this

$html =~ s/<\?KEYWORD\s+([^\?^>]+)\??>/$self->handle($1)/gme;

Changing this to

$html =~ s/<\?KEYWORD\s+([^\?^>]+)\??>/$self->handle($1)/ge; # Removed multiline option 'm'

fixed the memcache problem.

It seems to alter memcache's behaviour in GetParser when checking $self->[BUF]

if ($self->[BUF] =~ /^END\r\n/) { $self->[ON_ITEM] = undef; return 1; # we're done successfully, return 1 to finish }

Looks like m fighting with S*

-=( Graq )=-