in reply to Match operator fails for elements 100 and higher

Turn on warnings.

Your array only has 1 element:

my @mystrings = "string" x 200; print 'size=', scalar @mystrings, "\n"; # size=1

I don't know why the 1st regex does not produce an error, where the 2nd one does. But, maybe if you fix the warnings, you will get what you are looking for.

Replies are listed 'Best First'.
Re^2: Match operator fails for elements 100 and higher
by lostjimmy (Chaplain) on Nov 03, 2010 at 21:03 UTC
    This doesn't seem to be the issue, as the same error occurs after you fix it (my @strings = ("string") x 200;).