Use the File::Copy; module. It has the function Move and Copy.
 
Merijn
----- Original Message -----
Sent: Tuesday, September 10, 2002 11:56 AM
Subject: [Perl-unix-users] How to copy a file?

Hi,
 
There are commands to do rename,unlink... files in PERL. But I do not see any command to copy a file! Isn't there a command for this or is it that I missed it?
Right now, i am opening the file, reading the entire contents and writing it to my destination file. Can this be done with a single command?

Thanks & Regards
Ann Thomas
ESG SaLes Incentive Comp. IT
Tel : (+65)-6374-1841
HP Telnet: 834-1841

 

 

Reply via email to