in reply to substitution

One thing wrong with your code is that you are doing "print $line" which will print it out to screen.

If you want to change the file you need to do "print FIL $line".



Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...