in reply to Re^2: help needed in File::copy
in thread help needed in File::copy
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.
|
|---|