![]() |
|
Do you know where your variables are? | |
PerlMonks |
How can I reliably rename a file?by faq_monk (Initiate) |
on Oct 13, 1999 at 03:42 UTC ( #803=perlfaq nodetype: print w/replies, xml ) | Need Help?? |
Current Perl documentation can be found at perldoc.perl.org. Here is our local, out-dated (pre-5.6) version:
Well, usually you just use Perl's
rename($old, $new) or system("mv", $old, $new);
It may be more compelling to use the File::Copy module instead. You just copy to the new file to the new name (checking return values), then delete the old one. This isn't really the same semantics as a real
The newer version of File::Copy export a
|
|