Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^5: rename issuesby ikegami (Patriarch) |
on Nov 29, 2004 at 18:11 UTC ( [id://410986]=note: print w/replies, xml ) | Need Help?? |
You don't want to keep the old file? Add unlink($old_file_name); at the end. You can't read from and write to the same file at the same time, so you have to do it at the end.
In Section
Seekers of Perl Wisdom
|
|