title: How can I use Perl for in-place-editing of files with Unix-EOL on Windows?
body: <p>I am trying to use Perl's <em>in-place-editing</em> feature to change some text in files with Unix line endings in a PowerShell session on Windows:</p>
  <pre><code>perl.exe -i'.bak' -p -e &quot;s#PATTERN#REPLACEMENT#g&quot; (get-childItem *.sql,*/*.sql)
  </code></pre>
  <p>Unfortunately, the line endings are changed from Unix to Windows.</p>
  <p>Is there an option to tweak this one liner so that it doesn't modify the line endings?</p>