in reply to Defenetly a complicated perl recipie with 2 arrays, 1 scaler and some special matching
and it will not turn class into cl.$topic =~ s/\b$_\b//g;
The \b's tell Perl you only want the pattern to match at a 'word boundary'.
Hope this helps.
--
Mark Dominus
Perl Paraphernalia
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Defenetly a complicated perl recipie with 2 arrays, 1 scaler and some special matching
by Anonymous Monk on Jul 15, 2001 at 06:35 UTC | |
by Anonymous Monk on Jul 15, 2001 at 06:36 UTC |