in reply to substitution
Use Tie::File for editing a line of a file.
Also be sure to include your code in a <code></code> tag in order for it to be readable.
- Miller