while(<>) { print "yes\n" if /^y$/i || /^yes$/i; } #### while(<>) { print "yes\n" if /^y$/i; print "yes\n" if /^yes$/i; }