Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!usc!apple!oliveb!orc!mipos3!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.lang.perl Subject: Re: Globbing Message-ID: <1990Feb28.013225.23819@iwarp.intel.com> Date: 28 Feb 90 01:32:25 GMT References: <15209@bfmny0.UU.NET> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 28 In-Reply-To: tneff@bfmny0.UU.NET (Tom Neff) In article <15209@bfmny0.UU.NET>, tneff@bfmny0 (Tom Neff) writes: | I should get off my duff and code this as a Perl function | | @foo = &REglob("/usr/tmp/id[0-9]{2,5}.$XVAL"); | | first for demonstration purposes -- unless Randal wants to take up | the challenge. :-) Nope. I write only one liners, unless it's for my .sig. :-) I agree though. I mean, a few more steps, and we can get rid of the shell entirely! Does anyone remember UNIX V6 when globbing was done by a separate process, /etc/glob? Dennis Ritchie (research!dmr back then) told me in private mail (OK, so I'm name-dropping :-) that /etc/glob was the *first* program coded in C for UNIX. Maybe we can just rip all the useless parts of csh out, and rename it /usr/lib/perl/glob? :-) @a=<;echo Just another Perl hacker,>; print join(" ",@a); (How's *that* for esoteric and undocumented....) -- /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/