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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Tue, 17 Aug 2004 23:18:47 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin 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 In-Reply-To: <1092793767.4122b5a7c3eef@webmail.soton.ac.uk> Message-ID: References: <1092793767 DOT 4122b5a7c3eef AT webmail DOT soton DOT ac DOT uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Wed, 18 Aug 2004, V.MIRCEVSKI wrote: > 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 =~ / ------------- > > this does match. (notice the \ before C) > > What's up? (::confused;) > > I'm runing Win_XP_Pro/SP2, just installed Cygwin (and all > tools/packages/modules that were available through the web install > utility). Please review > Problem reports: http://cygwin.com/problems.html particularly the part about attaching the output of "cygcheck -svr". You haven't said which version of perl you're running, or even if you're running the Cygwin perl as opposed to some other version, or what your input was, or what the whole script is. FWIW, I can't reproduce this on WinXP Pro, Cygwin 1.5.10-3, perl 5.8.2-1 with the following snippet: echo "kkk" | \ perl -e 'undef $/;$page=<>;unless ($page =~ /