RE: cygwin-perl: matching behaves weird

2004-08-19 Thread V . MIRCEVSKI
Guys, Thank you all for your replies. Just to let you know that I figured out what the problem was, and (surprise-surprise) it had nothing to do with perl or cygwin at all. It was the source string. What I'm doing is making a Perl socket server process parts of an html document pased by a clie

RE: cygwin-perl: matching behaves weird

2004-08-18 Thread Dave Korn
Just FYI: > -Original Message- > From: cygwin-owner On Behalf Of Wardman_Michael > Sent: 18 August 2004 07:40 > To: V.MIRCEVSKI > Cc: cygwin ^ This is the correct way to http://cygwin.com/acronyms/#PCYMTNQREAIYR. [snip] > This might explain the Windows vs. Cygwin behaviour,

RE: cygwin-perl: matching behaves weird

2004-08-18 Thread Igor Pechtchanski
Good guess, but the original RE didn't support any variations of whitespace, so it wouldn't have matched a multi-line string anyway... However, if the OP didn't provide the exact RE he used, he could try setting PERLIO=crlf in his environment and see if that helps. One thing that he may also b

RE: cygwin-perl: matching behaves weird

2004-08-17 Thread Wardman_Michael
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: | tr -d '\r' -Original Message- F

Re: cygwin-perl: matching behaves weird

2004-08-17 Thread Igor Pechtchanski
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 b