in reply to Appending lines starting with white space to the previous line

Something like (untested):
$_ = <>; chomp; print; while (<>) { chomp; print "\n" unless s/^\s+//; print; } print "\n";
  • Comment on Re: Appending lines starting with white space to the previous line
  • Download Code