honest_Abe has asked for the wisdom of the Perl Monks concerning the following question:

I have a script that does a pattern matching test of a text record against a pattern file. In Unix, the test pass but in Windows, it flag the text record as failed.

I did the same on all other record in the pattern file -- all failed.

Should I specify any environment setting to run the perl script between the two?

I ran the perl script in a Unix emulator in windows (using cygwin).

please help. Thanks.

Replies are listed 'Best First'.
Re: Windows and Unix
by Anonymous Monk on Dec 09, 2011 at 08:45 UTC
Re: Windows and Unix
by furry_marmot (Pilgrim) on Dec 09, 2011 at 20:24 UTC
    Show us the code. Otherwise how are we supposed to know what's wrong? There's no flag you need to set, and in general, a script that runs in Unix will run in Windows. There are certain differences between the two OS's, but it's impossible to know if you ran into one of them until we see your code.