copy will check if the destination file exists. I don't think exists a parameter for overwrite destination file. Maybe you want this:
unlink $destfile if -f $destfile; copy($origfile, $destfile);
Update: This is a workaround. As mickeyn said at Re: help needed in File::copy, File::Copy should overwrite destination file.
Igor 'izut' Sutton
your code, your rules.
In reply to Re^3: help needed in File::copy
by izut
in thread help needed in File::copy
by uva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |