in reply to substitution
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 ...