in reply to Re^2: Stop runaway regex # (?{code})
in thread Stop runaway regex

return causes an error and "won't stay shared" lexical variables are problematic too.

Get newer perl (latest), this part upgraded

In the meantime, local our $diff; ...