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


in reply to Re^2: copying a file with .bak extension
in thread [SOLVED] copying a file with .bak extension

You could use kennethk's updated solution but open the newly created backup in append mode instead of the original.

  • Comment on Re^3: copying a file with .bak extension