[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Flushing all Buffers Before Exiting



Martin McCormick wrote:

> Before reading this posting, I added code in my perl
> script to open, append and close the file but the suggestion to
> add a signal handler is a much better idea so thanks for the
> suggestion.

I always use

# Execute anytime before the <STDIN>.
# Causes the currently selected handle to be flushed after every print.
$| = 1;

when needed - but not sure if applies to your case


Reply to: