http://www.perlmonks.org?node_id=736884


in reply to Re: Remove new line characters from PCL file
in thread Remove new line characters from PCL file

Hi thanks for response.

The thing is that when i open the '.dat' file and assigning it to the variable the new line character has already been evaluated and applied to the format so what i am looking for is that the script takes the line literally and not apply the new line character.

I would then be carrying out a tr// on the already changed file which would not give me the desired results, which is basically to have a mirror image of the imput file with a couple of word changes.