I will not have any regep in the $names. It contains the name of users that
have created label type in ClearCase.

Thanks for your help
David

-----Original Message-----
From: Bob Showalter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 10:39 AM
To: 'Nazary, David'; '[EMAIL PROTECTED]'
Subject: RE: unexpected results with grep 


> -----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]

Reply via email to