in reply to automated file move

unless this is for theoretical purposes only as an excercise in perl....data is normally moved off to separate storage in chunks (such as entire directory trees) with due regard given to access to that data from the application(s) that need it. It doesn't make sense to continue directory contents onto another server with such manual (and easily breakable) code.
you may be able to leverage MS DFS technology for unifying UNC access or other filesystem/clustering technology
the hardest line to type correctly is: stty erase ^H