At 10:35 AM 11/29/2001 +0000, [EMAIL PROTECTED] wrote: >Anyone know how to get rid of two new lines from one text file before >writing to another
I'm sorry.I'm not clear as to what you mean. If you're trying to read the lines below, you can change your default record delimiter from a single newline character to anything else, including two \n characters $/ = "\n\n" ## although I believe $/ = "" would work as well. >i.e. > >line of text > >line of text > >I can get rid of one newline with chop but can't think of how to delete two? maybe chomp would work with the change to $/. Give it a try. If you post more information and describe what you're desired output is, maybe I can be of more help. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]