Path: utzoo!attcan!uunet!ogicse!husc6!encore!xenna.encore.com!rboudrie From: rboudrie@xenna.encore.com (Rob Boudrie) Newsgroups: comp.lang.perl Subject: File copy operation in Perl Message-ID: <12796@encore.Encore.COM> Date: 25 Sep 90 15:07:47 GMT Sender: news@Encore.COM Reply-To: rboudrie@xenna.encore.com (Rob Boudrie) Organization: Encore Computer Corp, Marlboro, MA Lines: 17 I am writing a perl utiltiy which will need to execute various file copy applications. My options appear to be limited to : -> Open the file from file as well as the to file and do a read/write pairs in a loop (clumsy!) -> create a temporary script file and invoke it with "exec" Does anyone know of a way for Perl to do a fiel copy operation and return to the perl application? I tired using exec("cp fromfile tofile");, but the flow did not return to perl after executing the copy command. Please mail me any suggestions you may have. Thanks, Rob Boudrie rboudrie@encore.com Robert Boudrie rboudrie@encore.com Encore Computer, Marlborough MA