This prints nothing: print "a"; while (1) {} This prints a: print "a\n"; while (1) {} This also prints a: $| ++; print "a"; while (1) {}