http://www.perlmonks.org?node_id=1018153


in reply to Re: Replace newlines only if not inside braces
in thread Replace newlines only if not inside braces

Works! =)

But it took me some time to understand why all edgecases are covered, though I'm pretty sure that I already saw this technique before.

Cheers Rolf

  • Comment on Re^2: Replace newlines only if not inside braces