Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3B86EE73.8FB1D14A@1969.ws>
Date: Fri, 24 Aug 2001 17:16:51 -0700
From: Karl Zilles <zilles@1969.ws>
Organization: 1969 Communications,  Inc.
X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Perl problem still..
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

This was discussed many moons ago from the old perl version and I was
hoping to see a fix in the new release.

If I go to a text mounted directory and execute

perl -p -i -e ';' textfile.txt

Then every line in the textfile receives an extra '\r'.  So, this being
a dos text file, it gets two '\r's on every line.

It appears that the file is being read in binary mode, and written in
text mode.  

Karl Zilles

--
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/

