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: <200110161309.OAA23268@hawaii.dcs.gla.ac.uk> Content-Type: text/plain; charset="iso-8859-1" From: Reuben Thomas Reply-To: rrt AT dcs DOT gla DOT ac DOT uk Organization: University of Glasgow To: cygwin AT cygwin DOT com Subject: Perl gets \r in strings even in text mode Date: Tue, 16 Oct 2001 14:09:01 +0100 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit I'm currently having problems with Perl returning strings with CRLFs in rather than just LFs, even when read in text mode, from a text-mode mount point. For example, the following script: #! /usr/bin/perl while (<>) { if (m/\r\n/) { print "CRLF\n"; } } when saved to test.pl and run on a normal multi-line DOS text file prints "CRLF" lots of times, even when run on a DOS text file in a text-mode-mounted directory. This is repeatable on different machines; I'm using cygwin-1.3.2-1 (not the latest, I know, but 1,3.3 has serious problems for me because of the segfault-triggered-by-recursive-make bug) and perl-5.6.1-2. -- http://sc3d.org/rrt/ | Si hoc legere scis nimium eruditionis habes (Anon) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/