in reply to File::Copy renaming trouble

This is, AIUI, precisely the functionality provided by File::Copy::NoClobber. Unless this is a learning exercise I don't see any advantage to reinventing that particular wheel. HTH.

Replies are listed 'Best First'.
Re^2: File::Copy renaming trouble
by stevieb (Canon) on Jun 14, 2016 at 23:00 UTC

    LOL ++. I reinvented the wheel, just for something to do. :) Doesn't work correctly though, so I'm bailing and going with the module route.