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]
- Stripping line breaks Rory O'Connor
- Re: Stripping line breaks Maxim Berlin
- Re: Stripping line breaks Rory O'Connor
- Re[2]: Stripping line breaks Maxim Berlin
- RE: Stripping line breaks Gibbs Tanton - tgibbs
- RE: Stripping line breaks Rory O'Connor
- Re: Re[2]: Stripping line breaks Christopher Solomon
- Re[4]: Stripping line breaks Maxim Berlin
- Re[6]: Stripping line breaks Christopher Solomon
- Re[6]: Stripping line breaks Maxim Berlin
- Re: Re[6]: Stripping line breaks Christopher Solomon
- Re[8]: Stripping line breaks Maxim Berlin
- Re: Re[8]: Stripping line breaks Christopher Solomon
- Re[10]: Stripping line breaks Maxim Berlin
- Re: Re[6]: Stripping line breaks Stephen P. Potter
- Re: Re[6]: Stripping line breaks Jeff 'japhy/Marillion' Pinyan
- Re: Re[6]: Stripping line breaks Stephen P. Potter
