Quick Perl Question

GIDustin

Emperor
Joined
Nov 11, 2001
Messages
1,392
Location
Spearfish, SD
I am making a perl script that checks all unit folders for missing links in the INI files, and copies any files linked via the backtrack thing (..\) into the folder so it no longer is a link from another filename. The only thing I have left to do is the part where the file is copied from its old folder into the new one. I know you can use "rename $old, $new;" to move a file, BUT how do you copy a file? I tried OPENing the old one, getting the contents, and printing into teh new one, but that didnt seem to work (I am guessing that missing headers is to blame).

So basically I just need to know how to copy files with perl.

Thanks in advance.

GIDustin
 
I played with Perl about six months ago, and got to the point where I couldn't teach myself any more. But there are some good sites for help. www.perl.org, and learn.perl.org. at learn.perl.org they have several email lists, and as I recall there were some very knowledgeable people on the list.
 
Top Bottom