Re: copy files
[email protected] (John Lenton) Thu, 4 Apr 2002 17:23:51 -0300
| Newsgroups | perl.scripts |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Apr 04, 2002 at 01:25:35PM -0600, Aman Raheja wrote:
> 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?
on all unixoid boxes you could use
system('/bin/cp', $from, $to) == 0
or die "$from -> $to: $?";
whether this is "straight" (too many plays on words to choose
one) is up to the reader.
--
John Lenton ([email protected]) -- Random fortune:
HD cerrado por vacaciones. Ponerse en contacto con A: