This is a parsing bug somewhere and not really a regex bug. I submitted a TODO test for this in another patch. (rt_36909.patch) The problem is illustrated by this: /(((((((((x)))))))))(z)/; # clear $10 s/(((((((((x)))))))))(y)/${10}/; is($_,"y","RT#6006: \$_ eq '$_'"); For some reason ${10} doesnt get parsed the same way as $10 would. Cheers, YvesThread Previous | Thread Next