use File::Copy; move("dir1", "dir2"); #### Other restrictions include whether it works on directories...