my @matching=grep { 0 == index $_, $userinput } @commands;