Re: copy files

[email protected] (William R Ward) 04 Apr 2002 15:48:40 -0800
Newsgroups perl.scripts
Message-ID <[email protected]>
[email protected] (Aman Raheja) writes:
> Hi all
> I am runnibg PERL programs on a linux box.
> Is there a straight way to copy one file on the system to a different 
> location, other that opening one file and writing it to another?
> Thank you
> Aman

use File::Copy;

copy $origfile => $destfile or die "Can't copy: $!\n";

--Bill.

-- 
William R Ward            [email protected]          http://www.wards.net/~bill/
-----------------------------------------------------------------------------
     If you're not part of the solution, you're part of the precipitate.