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: <12F176DD950ED411B68E0050DA14ED10338902@jupiter.gunzphoto.com.au> From: Neil Lunn To: "'Neubauer, Frank'" , "'cygwin AT cygwin DOT com'" Subject: RE: problems with perl in text mode Date: Tue, 17 Jul 2001 19:29:10 +1000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" http://www.google.com/search?hl=en&safe=off&q=cygwin+perl+5.6.1+patch&btnG=G oogle+Search --Neil >-----Original Message----- >From: Neubauer, Frank [mailto:F DOT Neubauer AT elmeg DOT de] >Sent: Tuesday, July 17, 2001 12:02 AM >To: 'cygwin AT cygwin DOT com' >Subject: problems with perl in text mode > > >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/ > __________________________________________________________________________ Please Note : Only the intended recipient is authorised to access or use this e-mail. If you are not the intended recipient, please delete this e-mail and notify the sender immediately. The contents of this e-mail are the writer's opinion and are not necessarily endorsed by the Gunz Companies unless expressly stated. We use virus scanning software but exclude all liability for viruses or similar in any attachment. -- 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/