title: Perl: opening a file, and saving it under a different name after editing
body: <p>I'm trying to write a configuration script.
  For each customer, it will ask for variables, and then write several text files.</p>
  
  <p>But each text file needs to be used more than once, so it can't overwrite them.  I'd prefer it read from each file, made the changes, and then saved them to $name.originalname.</p>
  
  <p>Is this possible?</p>