move ($oldname, $newname) or die "Unable to rename '$oldname' to '$newname': $!"; [download]
In reply to Re: Renaming files in dir by cdarke in thread Renaming files in dir by larus