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
In reply to Re: Defenetly a complicated perl recipie with 2 arrays, 1 scaler and some special matching
by Dominus
in thread Defenetly a complicated perl recipie with 2 arrays, 1 scaler and some special matching
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |