in reply to How to copy a file

How about File::Copy? It comes with your Perl unless it's a fairly old Perl.