Removed unused variable `$match_word`
Removed unnecessary local copy of `$opt_regex`
Removed unnecessary local copy of `$opt_passthru`
Merge pull request #506 from sth/unnecessary-variables

Removed some unnecessary variables