In a message dated 12/11/2002 11:54:48 AM Pacific Standard Time, 
[EMAIL PROTECTED] writes:


> What about just
> $list =~ s|/?$name/?||

If $name appears in the middle of the list, this removes both '/' characters. 
 This was my first guess as well.

> But you should be careful about that in case $name appears in the middle of
> a word
> e.g., cat and catmandu
> 
> perhaps
> $list =~ s|/?\b$name\b/?||;
> 
Thanks for the warning.  The names are formated as "S.Smith", so unless there 
is an "S.Smithson", I shouldn't have a problem, but the "\b"s are a good 
safety measure anyway.

                                     /\/\ark

Reply via email to