Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!sun-barr!decwrl!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!forsight!jato!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: Non buffered output Message-ID: <6674@jpl-devvax.JPL.NASA.GOV> Date: 27 Dec 89 21:17:16 GMT References: <3146@taux01.UUCP> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 24 In article <3146@taux01.UUCP> crehta@taux01.nsc.com (Ran Ever-Hadani) writes: : Is there a way to force the statement : : print "."; : : to put a dot on the screen immediatly after it is issued, rather : than after the output buffer is full? $ grep buffered /usr/man/catn/perl.n select(STDERR); $| = 1; # make unbuffered select(STDOUT); $| = 1; # make unbuffered line buffered if output is to the terminal and block buffered otherwise. Setting this variable is useful $ grep flush /usr/man/catn/perl.n ciative array before the dbmopen. You can flush the efficient. Note: exec (and system) do not flush unflushed buffers remain unflushed in both change the dbm file. (It does, however, flush any $| If set to nonzero, forces a flush after every write $ There are faster ways of finding out these things than asking the net. Larry