in reply to Re: Why does my Perl regex substitution for linebreak fail?in thread Why does my Perl regex substitution for linebreak fail?
local $/ = "\n\n="; while (<DATA>) { s/\n\n=\z/\n=/; print; } [download]