home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!coombs!mark
- From: mark@coombs.anu.edu.au (Mark)
- Newsgroups: comp.lang.perl
- Subject: Re: Copying files; system and exec for MS-DOS perl?
- Date: 5 Jan 93 04:11:42 GMT
- Organization: Australian National University
- Lines: 28
- Message-ID: <mark.726207102@coombs>
- References: <1993Jan2.220240.16046@athena.mit.edu>
- NNTP-Posting-Host: 150.203.76.2
- Organisation: Wassat?!
-
- aeichsta@athena.mit.edu (Andrew J. Eichstaedt) writes:
-
- >I'm using Len Reed's version of Perl for MS-DOS. I wanted my perl script
- >simply to copy a file to another, new file.
-
- >* I couldn't find a perl copy function to copy files, the same way rename()
- >renames files, or unlink() deletes files. Am I missing something obvious?
- >(I've just started using perl.)
-
- Hmm, one thing to do would be to try another perl version from
- ftp.ee.umanitoba.ca in msdos/perl or similar. Or try this:
-
- open(INPUT, "copy $file $file2|");
- close(INPUT);
-
- Seems rather unecessary tho as Im sure I could "shell" subcommands using
- system. Get the perl386 version from the above ftp site. (If you have a
- 386 that is :) The other dosperl binary on that site could help too..
-
- If you want the full story on the IBM versions check the file
- /pub/perl/misc/perl.code.sources on coombs.anu.edu.au. I think I sorta wrote
- it up there. There are references to other binaries for various computers
- there too.
-
- Bleah, why am I only posting about lame dos in this group.. geez
-
- Mark
- mark@coombs.anu.edu.au
-