my %stopwords = map {$_ => qr/\B/} qw(if then else); s/\b(\w+)\b(??{ $stopwords{$^N} or qr[] })/\$self->\{$1\}\{val\}/g