Look for word boundaries.
$line = $. if (m/\b$complex\b/);
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: pattern match
by davorg
in thread pattern match
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |