while(<>) { print "yes\n" if /y(es)?/i; }