in reply to Re: Odd -w behavior on scripts written on Win32 platform
in thread Odd -w behavior on scripts written on Win32 platform
Following TMTOWTDI, you could create a symbolic link to perl^M in your path. Then hack perl to handle/strip ^M at the end of every line.
But it's probably easier to just fix the files :-)