And who would care if the list always remains small enough that it wouldn't make a difference? use grep, if you notice a performance issue at that command then it's time to think of other methods of doing your operation (hint hashes).
Personally I avoid making giant arrays, heck I aviod too much data in memory all together, but once you have to have too much data in memory you already have a problem that you should be re-thinking to use less of it. > -----Original Message----- > From: Sudarshan Raghavan [mailto:[EMAIL PROTECTED]] > Sent: Sunday, September 29, 2002 4:01 AM > To: Perl beginners > Subject: RE: newbie - in > > > On Fri, 27 Sep 2002, Timothy Johnson wrote: > > > > > check out "perldoc -f grep" > > grep should not be used for this purpose, it will run through > the entire > list even after the desired element has been found. > > > ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]