Name
copy
Synopsis
copy (source
,dest
[,buffsize
])
Copies source
to
dest
. Takes the following
arguments:
source
The source string, FileHandle reference, or FileHandle glob. If
source
is a filehandle, it is read from; if it’s a filename, the filehandle is opened for reading.dest
The destination string, FileHandle reference, or FileHandle glob.
dest
is created if necessary and written to.buffsize
Specifies the size of the buffer to be used for copying. Optional.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.