cxreg has asked for the wisdom of the Perl Monks concerning the following question:
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++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regexp hang?
by Aristotle (Chancellor) on Aug 22, 2002 at 05:18 UTC | |
by cxreg (Novice) on Aug 22, 2002 at 05:22 UTC | |
by tye (Sage) on Aug 22, 2002 at 05:54 UTC | |
by Aristotle (Chancellor) on Aug 22, 2002 at 05:42 UTC | |
by Arien (Pilgrim) on Aug 22, 2002 at 06:02 UTC | |
by cxreg (Novice) on Aug 22, 2002 at 05:27 UTC |