in reply to Re: Mail script is cutting out data.
in thread Mail script is cutting out data.

$|=1 only sets autoflush on the currently selected filehandle, which is STDOUT, and won't solve the issue for the FIL handle.

Instead, he wants to
open(FIL,">>$myfil") || "Can't open $myfil: $! \n"; select((select(FIL), $|=1)[0]);
or alternatively, and much easier on the eyes,
use IO::Handle; open(FIL,">>$myfil") || "Can't open $myfil: $! \n"; FIL->autoflush();
____________
Makeshifts last the longest.