home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / perl / 7669 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  1.5 KB

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