The my $word_len's you declare inside the if statement are not visible outside the if statement, so you are seeing some other $word_len, either a global variable or a lexical in an outer scope.
And you have a precedence problem. You are doing like length($comment[1] + length $word); make it like length($comment[1]) + length $word instead.
In reply to Re: Re: Re: regexp pattern match help?
by ysth
in thread regexp pattern match help?
by Elijah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |