The following code ends up with an error (segmentation fault):

$_ = 'x' x 1000;
/(a.|.){2,}/o;

The segmentation fault seems to happen only when the searched text ($_ in this example) is longer than 855 characters.

I know that m and n in the {m,n} qualifier are limited, but there isn't a limitation for the length of the searched text, is there?

I'm using Perl 5.6.0 built for Darwin.

Gaji

Reply via email to