Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <382C684D2347FA4DADFC2D3EA70268F126EA54@ausy1mx2.corp.emc.com> From: Wardman_Michael AT emc DOT com To: V DOT MIRCEVSKI AT soton DOT ac DOT uk Cc: cygwin AT cygwin DOT com Subject: RE: cygwin-perl: matching behaves weird Date: Wed, 18 Aug 2004 07:39:44 +0100 MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes I wonder if the "/s" on the end is getting a newline problem somewhere? This might explain the Windows vs. Cygwin behaviour, as they can be configured to have different line endings. I've had to modify a lot of scripts to run under Cygwin by adding: xxxx | tr -d '\r' -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of V DOT xxxxx AT soton DOT ac DOT uk Sent: Wednesday, 18 August 2004 11:49 To: cygwin AT cygwin DOT com Subject: cygwin-perl: matching behaves weird Now, this may be old news for many of you, but I'm new to cygwin, so please don't shoot. I'd be happy if someone would post me a link to the solution. I'm doing quite strightforward matching using regular expressions in perl (as you can see below) and the code used to work just fine on the ActiveState perl, but behaves very strange with cygwin Perl: ------------- unless ($page =~ /