> If it's on the front, it won't remove it because it doesn't have a
preceeding
> / in that case.

I'm confused...according to your first post:

>$list =~ s|$name||; # remove $name from the list if it's in the list
>$list =~ s|//|/|; # if $name was in the middle of the list, it would have
>left behind two /s, remove one
>$list =~ s|^/||; # if $name was at the front of the list, remove the
leading /
>$list =~ s|/$||; # if $name was at the end of the list, remove the trailing
/

By rule 3 you should have a preceeding / and by rule 4 you should have an
ending /
Therefore, your list should always look like:
/x/y/z/

Is this not the case?

Tanton


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to