Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!hp4nl!ruuinf!cs.ruu.nl From: piet@cs.ruu.nl (Piet van Oostrum) Newsgroups: comp.lang.perl Subject: Re: Globbing Message-ID: <2538@ruuinf.cs.ruu.nl> Date: 1 Mar 90 09:35:43 GMT References: <15209@bfmny0.UU.NET> Sender: news@ruuinf.cs.ruu.nl Reply-To: piet@cs.ruu.nl (Piet van Oostrum) Organization: Dept of Computer Science, Utrecht University, The Netherlands Lines: 24 In-reply-to: tneff@bfmny0.UU.NET (Tom Neff) In article <15209@bfmny0.UU.NET>, tneff@bfmny0 (Tom Neff) writes: `A quick thought -- globbing is too slow right now. If your system has `CSH, even though you never use it in your life otherwise, Perl will `spawn it to do globbing. If you forcibly turn off #define CSH, Perl `then spawns a Bourne shell PIPE! ('echo %s | tr') I can see the `'echo' as a quick&dirty, but a tool as sophisticated as Perl loading `'tr'??? With do_trans() and so forth already coded? Yeccch. ` `At minimum in the second case, Perl should take the output of 'echo' `(which is internal to many Bourne shells) and do its own translate. ` `Ideally, Perl should do its own globbing. There is enough globbing code `out to there to "borrow" from, and Perl already has 'dirent'. ` Actually, I rewrote the globbing in perl (I mean, I put the code in perl). I borrowed the globbing code from GNU make. I have sent the code to Larry, but I never heard anything about it. Maybe he is afraid to use it :=) -- Piet* van Oostrum, Dept of Computer Science, Utrecht University, Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands. Telephone: +31-30-531806 Uucp: uunet!mcsun!hp4nl!ruuinf!piet Telefax: +31-30-513791 Internet: piet@cs.ruu.nl (*`Pete')