Apr 12, 2000, 2:53 PM
Post #2 of 2
To make a program display its results as it executes (opposed to when the script completes), you can flush the Perl buffer by using:
Re: Forcing output before script finishes
[In reply to]
$| is the variable for the perl buffer. By default, it's set to not flush (false). So by making the value 1 (true), the buffer will flush as soon as there's something to output, and will continue to do so until the program completes.