use File::Copy; copy("/path/to/old", "/path/to/new");