Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^6: Memcache 'get' returns undef running under mod_perl (debug)

by graq (Curate)
on Dec 04, 2007 at 08:52 UTC ( #654739=note: print w/ replies, xml ) Need Help??


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

Interesting. Testing it a little further, it appears that it is the combination /me causing the problems. Removing just the 'm' to give

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

does make it 'work'.

However, I need the match to be multiline. Re-introducing the /m option in a loop also makes things work:

my $MAX = 100; while( $html =~ m/<\?KEYWORD\s+([^\?^>]+)\??>/m ) { my $ssi_html = $self->handle($1); $html =~ s/<\?KEYWORD\s+([^\?^>]+)\??>/$ssi_html/m; last if $MAX++ > 100; }

-=( Graq )=-


Comment on Re^6: Memcache 'get' returns undef running under mod_perl (debug)
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://654739]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (21)
As of 2015-07-07 21:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls