print "start\n" if (grep {/test/}); #### while ( and !$flag){} #UPDATE---see below discussion!