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