Copies or moves files or filehandles from one location to another. Returns 1 on success, 0 on failure, or sets $! on error.
copy |
copy (source, dest[, buffsize])
Copies source to dest. Takes the following arguments:
cp |
cp (source, dest[, buffsize])
Like copy, but exported only on request:
use File::Copy "cp"
move |
move (source, dest)
Moves source to dest. If the destination exists and is a directory, and the source is not a directory, then the source file is renamed into the directory specified by dest. Return values are the same as for copy.
mv |
mv (source, dest)
Like move, but exported only on request:
use File::Copy "mv"
Copyright © 2002 O'Reilly & Associates. All rights reserved.