delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/16/10:02:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <5196162D89F8D41180CC009027C34CB80782BC@exchange.pe.elmeg.de>
From: "Neubauer, Frank" <F DOT Neubauer AT elmeg DOT de>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: problems with perl in text mode
Date: Mon, 16 Jul 2001 16:01:51 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

Hi,

I have problems running the perl script rfc-index.pl from the CPAN archive.

What I have is a network drive mounted in text mode and a rfc-index.txt file
(MSDOS: \r\n).

The script fails to spilt up the input file at empty lines

--- cut here
    $/="";

    while (<>) 
	...
--- cut here

The perl interpreter does not accept the MSDOS-style empty line "\r\n\r\n"
as a legal empty line.

Furthermore, as the input is read in chunks rather than lines, each chunk
contains several line breaks. When they are written back using "print", the
line breaks are expanded into "\r\r\n", which indicates that they haven't
been compressed in the input side.

Are there any environment variables which might have to been set, is it a
bug, or ...?

Best regards,
Frank Neubauer


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019