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:

Reply via email to