Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!uc!cs.umn.edu!cybrspc!roy From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail) Newsgroups: comp.lang.perl Subject: Re: MS-DOS version questions Message-ID: Date: 16 Sep 90 17:13:48 GMT References: <11982@chaph.usc.edu> Organization: Villa CyberSpace, Minneapolis, MN Lines: 17 news@usc.edu writes: [regarding chdir() on MS-DOS] > Um, I don't have an msdos perl workin, but come on!! You know that > chdir on messydos is independent of the default drive.... > > try following the above line with something like > system("d:") || die "Couldn't switch drives: $!"; Hoo-boy! I think it's time for a chdsk() to be added to the MS-DOS version. system() will spawn a new command processor for the job, which will slow things down a lot. (especially if you run 4dos and your COMSPEC=C:\4DOS.COM) -- Roy M. Silvernail |+| roy%cybrspc@cs.umn.edu |+| #define opinions ALL_MINE; main(){float x=1;x=x/50;printf("It's only $%.2f, but it's my $%.2f!\n",x,x);} "This is cyberspace." -- Peter da Silva :--: "...and I like it here!" -- me