Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <4.3.2.7.2.20010309020950.00b39670@casbah.it.northwestern.edu> X-Sender: dye053 AT casbah DOT it DOT northwestern DOT edu (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Fri, 09 Mar 2001 02:27:42 -0600 To: cygwin AT cygwin DOT com From: Dmitry Epstein Subject: Perl and linebreaks Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Searching the archives I gathered that a few people already experienced problems similar to mine, but I couldn't find a definitive answer/solution to the problem. If this has already been answered, kindly refer me to the appropriate thread. I installed the latest version of Cygwin in "DOS mode" (so \n = CR/LF). The distribution includes Perl v. 5.6.1. The problem is that Perl gets really confused when dealing with text with CR/LF linebreaks. The only thing that it does right is print \n as CR\LF, but just about everything else it does wrong. For instance, if I read a text file, then print it *unchanged*, I find an extra CR character inserted at each linebreak. Pattern matching is all messed up as well. I am not sure if this is a problem with Perl or with bash or something else. Any ideas? Dmitry Epstein Northwestern University, Evanston, IL. USA mitia AT northwestern DOT edu -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple