On Sun, 26 Aug 2001, Maxim Berlin wrote:

> Hello Christopher,
> 
> Saturday, August 25, 2001, Christopher Solomon <[EMAIL PROTECTED]> wrote:
> >> p.s. does anyone know, why i can not write "$a =~ s/$///g;" ?
> 
> CS> You can. 
> 
> CS> $a =~ s!$/!!g;
> 
> CS> Perl just gets confused with the /'s, you have to use alternate
> CS> delimiters.
> ok, what about "$!" ? use @? what about "$@"?
> and so on...

I guess just use whatever delimiters won't get caught up in the variable
name.  You can use (I believe) any non-alphanumeric character as a regex
delimiter.  I like !, /, ^, and {} personally.

Chris


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

Reply via email to