Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!ziggy!usfvax2!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.lang.perl Subject: Re: more enhancements? Message-ID: <26017853.CD7@tct.uucp> Date: 16 Mar 90 23:35:47 GMT References: <8017@ogicse.ogi.edu> Organization: ComDev/TCT, Sarasota, FL Lines: 17 According to hakanson@ogicse.ogi.edu (Marion Hakanson): >In the interests of portable and efficient scripts, I'd like to >request the addition of a "getwd" call. Sure -- as long as the non-BSD implementation uses Doug Gwyn's getcwd() routine instead of the library one. If we're going to do this, let's do it right: getcwd() (on most versions of USG Unix) does popen("pwd","r"), which is approximately the slowest possible way to determine the current directory. Doug's version uses readdir() and stat(), and is much faster (obviously). >I'd also like to add my support for a "gethostname" call. And/or uname(). (Some systems have both, you know...) -- Chip Salzenberg at ComDev/TCT , "The Usenet, in a very real sense, does not exist."