home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!olivea!hal.com!perv.hal.COM!not-for-mail
- From: aahz@hal.COM (Tom Wylie)
- Newsgroups: comp.lang.perl
- Subject: copy() primitive?
- Message-ID: <1gqkqtINN8ne@perv.hal.COM>
- Date: 17 Dec 92 19:35:57 GMT
- Organization: HaL Computer Systems, Inc.
- Lines: 15
- NNTP-Posting-Host: perv.hal.com
-
- Is there some reason there isn't a primitive for copying files?
- (along the lines of unlink and rename). firing off backticked /bin/cp's
- seems amazingly inefficient, and while yes I could use filehandles, it
- seems to me that a primitive that just horks in the file and spits it
- out somewhere else would be much faster. I can't imagine that this
- hasn't come up, so I figure there must be a good reason why there isn't
- a copy() primitive, just wondering what it is.
-
- Grepping the FAQ for 'cp' and 'copy' didn't turn up anything relevant,
- and I don't remember seeing anything about it in the Camel book.
-
-
- Thanks,
- Tom Wylie | What is the difference between apathy and ignorance?
- aahz@hal.com | I don't know, and I don't care.
-