Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!convex!news From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.perl Subject: Re: Novice surprise Message-ID: <1991Feb12.165848.18718@convex.com> Date: 12 Feb 91 16:58:48 GMT References: <11393@jpl-devvax.JPL.NASA.GOV> <22434654@bfmny0.BFM.COM> Sender: news@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 32 Nntp-Posting-Host: pixel.convex.com From the keyboard of tneff@bfmny0.BFM.COM (Tom Neff): :>[Larry said] :> If you really want to write a bulletproof script, you might :>put the following before the initial loop: :> :>for (@ARGV) { s#^([^/])#./$1#; s#$#\0#; } :>while (<>) {... : :Nah, too complicated. Just : : grep(ARGV,s//