I would like to add the ability to search for “variants” of a word in this code. So searching for the word (optimize sales) would also find “optimizing sales” and “optimized sale”.
$SearchFor = "optimize sales";
@Array = qw(access to information that helps them optimizing sales opportunities and stay focused on the right optimized sale in helping companies effectively optimize their sales strategies so that they can optimize sales);
$WordCount = () = "@Array" =~ /$SearchFor/g;