http://qs321.pair.com?node_id=902975


in reply to Re^2: Reconcile one list against another
in thread Reconcile one list against another

That is true, my code was just meant to solve is state variable quandary.

Without thinking too deeply about it, your noted problem might be solved by simply adding some word boundaries:

if (my @matched = grep {$line =~ /\b\Q$_\E\b/i} @users) {