in reply to Re: Re: Turn Hate Mail to Love Letter: Regex Multi-Word/Phase Replace
in thread Turn Hate Mail to Love Letter: Regex Multi-Word/Phase Replace
I should have used $2 instead. But I don't think this is a problem. You just have to remember to add 1 to your $n.
Otherwise you could go the $&-way:
s/$profanity/eval '"'.$profane{$&}.'"'/ge;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Turn Hate Mail to Love Letter: Regex Multi-Word/Phase Replace
by chunlou (Curate) on Jun 26, 2003 at 06:40 UTC | |
by Skeeve (Parson) on Jun 26, 2003 at 07:40 UTC | |
by chunlou (Curate) on Jun 26, 2003 at 10:20 UTC |