I'm not sure what you mean about chomp's weird effect, but the newline character in windows is still \n. In Windows that stands for a Carriage Return and then a Line Feed.
-----Original Message----- From: IT Workflow - Terry Honeyford To: [EMAIL PROTECTED] Sent: 1/25/02 8:27 AM Subject: Stripping windows CR/LF characters I am reading a line at a time of a windows log file and want to strip off the CR or LF characters at the end of the line chomp seems to have a weird effect (returning the cursor to the beginning of the line!) I am sure there is a regex to do this (similar to s/\cM//g for MAC line endings) but I don't know what characters are at the end of lines on a windows machine. Can anyone help? TIA Terry Honeyford -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------------------------------- This email may contain confidential and privileged material for the sole use of the intended recipient. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]