$lines =~ s{$/$/}{$/}gs; [download]
_________broquaint
In reply to Re: remove blank lines with regex by broquaint in thread remove blank lines with regex by amarceluk