in reply to Re: Removing empty line(s) with regex in a multiple strings in a variable
in thread Removing empty line(s) with regex in a multiple strings in a variable

I worked with the same trouble, and the only one good working way I found, it is $buffer =~ s/^\s*\n+//mg; Thank you!
  • Comment on Re^2: Removing empty line(s) with regex in a multiple strings in a variable