There is a module File::Copy which you can use

 

use File::Copy;
copy("file1","file2");

 

regards

 

rajendran

redwood shores,ca

 

 

-----Original Message-----
From: karthikeyan [mailto:[EMAIL PROTECTED]]
Sent:
Tuesday, September 10, 2002 3:52 AM
To: [EMAIL PROTECTED]
Subject: Re: [Perl-unix-users] How to copy a file?

 

Hi,

 

  Why dont you take help of DOS(Copy) or Unix(cp)  command from Perl.  That could be lot more faster than doing it by ourselves.

I would do that if i were you.

 

  Let me know what you think.

 

  Regards,

 

karthikeyan.

----- Original Message -----

Sent: Tuesday, September 10, 2002 3:26 PM

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