Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by graq (Curate)
on Dec 04, 2007 at 08:52 UTC ( [id://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 )=-

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (8)
As of 2024-04-23 08:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found