Skip to main content
added 134 characters in body
Source Link
Lambert
  • 12.8k
  • 2
  • 28
  • 35

In your script you can use:

STDOUT->flush;

to flush the output buffer.

You can even set STDOUT->autoflush(1); globally.

To flush on newlines only try:

STDOUT->autoflush(0);
open STDOUT, ">/tmp/script.out"
.
.
close STDOUT;

In your script you can use:

STDOUT->flush;

to flush the output buffer.

You can even set STDOUT->autoflush(1); globally

In your script you can use:

STDOUT->flush;

to flush the output buffer.

You can even set STDOUT->autoflush(1); globally.

To flush on newlines only try:

STDOUT->autoflush(0);
open STDOUT, ">/tmp/script.out"
.
.
close STDOUT;
Source Link
Lambert
  • 12.8k
  • 2
  • 28
  • 35

In your script you can use:

STDOUT->flush;

to flush the output buffer.

You can even set STDOUT->autoflush(1); globally