in reply to A small comma parsing problem...
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A small comma parsing problem...
by chinamox (Scribe) on Oct 03, 2006 at 16:53 UTC |