February 2012
Intermediate to advanced
1184 pages
37h 17m
English
renameOLDNAME,NEWNAME
This function changes the name of a file. It returns true for
success, and false otherwise. It will not (usually) work across
filesystem boundaries, although on a Unix system the mv command can sometimes be used to compensate
for this. If a file named NEWNAME already
exists, it will be destroyed. Non-Unix systems might have additional
restrictions.
See the standard File::Copy module for cross-filesystem renames using a
platform-independent move
function.
Read now
Unlock full access