|Perl Monk, Perl Meditation|
overwrite a fileby Anonymous Monk
|on Apr 01, 2005 at 21:25 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
I want to copy a file over to another directory and if that file exists, I would like to overwrite the file. A copy command:
copy ( source, destination );
But, the copy command does not overwrite the file if it already exists. Is there a way I can force the overwrite?
Thanks in advance.