6.9 拷貝檔案

使用 File::Copy 這個模組。用法如下:

#! /usr/bin/perl

use File::Copy;

copy("file1", "file2");