Looks to be a version-specific limitation. Mine (ActivePerl) stops somewhere between 31200 and 31300. Interesting find. Since it quietly aborts, I'd say it's worth a bug report.
Caution: Contents may have been coded under pressure.
Comment on Re^3: The nth occurrence of a character