in reply to Re: dos2unix line endings on Windows
in thread dos2unix line endings on Windows

I usually try to return things to their original state, that's why I did it. I think when you run this file in an open CMD session, the PERLIO will remain set after batch file execution. but you may not want it in the consequent Perl one liners.

Replies are listed 'Best First'.
Re^3: dos2unix line endings on Windows
by ikegami (Patriarch) on Feb 11, 2010 at 17:31 UTC

    I think when you run this file in an open CMD session, the PERLIO will remain set after batch file execution.

    Correct. So if it was PERLIO=foo before your batch file ran, you changed it to PERLIO=.

    I usually try to return things to their original state, that's why I did it.

    Except it didn't return it to its original state. The change I made returns it to its original state.

      i didn't notice setlocal. i'll correct my original post. tnx