File::Copy

File::Copy

NAME

File::Copy - Copy files or filehandles

SYNOPSIS

use File::Copy;

copy("sourcefile","destinationfile") or die "Copy failed: $!";
copy("Copy.pm",\*STDOUT);
move("/dev1/sourcefile","/dev2/destinationfile");

use File::Copy "cp";

$n = FileHandle->new("/a/file","r");
cp($n,"x");

DESCRIPTION

The File::Copy module provides two basic functions, copy and move , which are useful for getting the contents of a file from one place to another.