in reply to They keep hittin the enter key.
Assuming you are really interested in deleting trailing newlines,
will nuke them. With data that comes from textarea fields, you have to worry about both carriage returns and linefeeds, unless you first do something like$message =~ s/[\r\n]+$//;
to remove the hard returns, leaving you with Unix-friendly strings.$message =~ s/\r//g;
|
|---|