Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-07-30 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (231 votes), past polls