in reply to Re^4: Two line match
in thread Two line match

The /g never handles overlapping matches in order to avoid infinite loops.

But you can modifiy your regex: m/----(?:\n----)+/----/g