from chapter 4 in MacPerl & Ease
Computers use certain characters - usually invisible - to represent line
breaks. Mac OS uses the octal character \015for line breaks (sometimes
called carriage return, or CR). Unix uses \012(line feed, or LF). DOS and
Windows use the sequence \015\012. (Aren't standards wonderful? :-)
- hcir
On Sunday, May 6, 2001, at 07:33 AM, Dan Wolchonok wrote:
> i'm keeping a database of stuff in a file, and each line is an entry.
> I cannot have one entry on multiple lines, so I have a \n at the end of
> each line. I allow users to add to the database using a <textarea>
> field, and when i change the character \n to <br>, I don't think all
> the return characters have been taken out. I know that on windows
> there are two (something like CR and LF, i think) return carriage
> thingys, and I was wondering if there is another character i should
> remove from the variable passed through <textarea>?