Use \b to match on word boundaries.
next unless $language =~ /\b$search\b/;
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: A small comma parsing problem...
by davorg
in thread A small comma parsing problem...
by chinamox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |