I've written a CGI script that sends mail using sendmail. If a line contains a period(.) only, it ignores anything written after that line as expected. As a solution, I plan on replacing the period with a period and a space if it's on a separate line.
I'm using Perl. This regular expression does not solve my problem:
Code:
$body =~ s/\n\.\n/\n\. \n/gm
Any help will be appreciated. Thank you.