As you can see, it starts to get really slow around 20 and gets exponentially worse from there. Hast thou any idea wtf is going on?my $x = 1; while(1) { my $text = "a" x $x; $text =~ s/(\w+){$x}//; print "x = $x ; OK\n"; $x++; }
In reply to regexp hang? by cxreg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |