Ditto. This seems like perl must keep a loop counter on substitutions to detect the error, because I'm doing this on a 1.5GB file, and it errors. Split that in half, and it passes (doing this on 64-bit perl for memory needs). cat the first half back onto itself (to make sure it is just duplicate of the first and not a source of the error) to get it back up to 1.5GB, fails.
-JM