in reply to regular expression hanging inside a child thread
It's been reported already with no resolution.
You could force the regexp to be recompiled in each thread for now:
# Globals my $expensive_re_str = ''.qr/([\w.+-]+@(?:[\w-]+\.)+\w{2,5})(?<!\.(?:jsp|asp|jpg|htm)\W/i; my %expensive_re; # Workaround for perl bug RT#55600 my $expensive_re = $expensive_re{$thread_id} ||= qr/$expensive_re_str/; my ($mail) = $string =~ m/$expensive_re/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regular expression hanging inside a child thread
by dxxd116 (Beadle) on Apr 17, 2009 at 20:27 UTC |