Perhaps
subhash_fire can post some code; a lot of us are running Cygwin + Perl and can review.
When you install Cygwin you get to choose file type (Unix or Dos) which really means you're choosing what kind of newline terminator you would like to use.