if (! m{ foo | bar | baz }x ) { ... } [download]
In reply to Re: inserting string only once after matching a pattern by ikegami in thread inserting string only once after matching a pattern by Anonymous Monk