print "$arg matches\n" if grep { $arg } @valid;