Rename the specified file.
"old" - the old file to rename.
"new" - the new file name.
The new path if the operation was successful or $null.
# how to use Sleep to rename thousands of files $newprefix = "olddata"; $oldprefix = "dota"; sub checkFile { if (-isDir $1) { map(&checkFile, ls($1)); } else if ("$oldprefix $+ *.html" iswm $1) { rename($1, strrep($1, $oldprefix, $newprefix)); } } checkFile("c:/");