> -----Original Message----- > From: Bob Showalter [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 1:33 PM > To: 'Nazary, David'; '[EMAIL PROTECTED]' > Subject: RE: unexpected results with grep > > ... If you want to find the labels > containing the current name, you need something like: > > grep /$name/, @labels;
Actually, you probably want grep /\Q$name/, @labels, so that any regex metachars in $name are escaped. (Unless $name is supposed to contain a regex, of course.) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]