home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!psinntp!internet!sbi!zeuswtc!cebu!goldfish
- From: goldfish@cebu.sbi.com (P. Goldsmith)
- Newsgroups: comp.lang.perl
- Subject: Re: Copying files; system and exec for MS-DOS perl?
- Message-ID: <804@cebu.sbi.com>
- Date: 7 Jan 93 13:52:47 GMT
- References: <1993Jan2.220240.16046@athena.mit.edu> <5ygswB5w165w@cybrspc.UUCP>
- Organization: Salomon Brothers, Inc
- Lines: 21
-
- In article <5ygswB5w165w@cybrspc.UUCP> roy%cybrspc@cs.umn.edu (Roy M. Silvernail) writes:
- >aeichsta@athena.mit.edu (Andrew J. Eichstaedt) writes:
- >>...
- >> perl -e "system('dir')" seems to do nothing in the DOS version, whereas
- >...
- >It appears (and I'll have to do some experimenting to verify this) that
- >perl is handling the system() call without a new instantiation of the
- >command processor. The 'dir' command is a builtin for command.com and
- >...
-
- but "xcopy" is an external command ...
-
- system ("xcopy $old $new") || die " ... $!";
-
- (but then, doesn't Perl fire up a shell for any "system" which has a single
- argument?)
- --
- Paul Goldsmith <goldfish@sbi.com> w (212) 783-7733
- (shredding elf) <goldfish@ozrout.uucp> h (212) 727-9345
- ( Shirley MacLaine told me there would be LIFETIMES like this)
- so many managers ... so little time ...
-