File-Copy

File::Copy(3p) Perl Programmers Reference Guide File::Copy(3p)

File-Copy

File::Copy(3p) Perl Programmers Reference Guide File::Copy(3p) # File::Copy(3p) Perl Programmers Reference Guide File::Copy(3p) NNAAMMEE # File::Copy - Copy files or filehandles SSYYNNOOPPSSIISS # 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"); DDEESSCCRRIIPPTTIIOONN # 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. copy The "copy" function takes two parameters: a file to copy from and a file to copy to. ...