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 toor alternatively, and much easier on the eyes,open(FIL,">>$myfil") || "Can't open $myfil: $! \n"; select((select(FIL), $|=1)[0]);
____________use IO::Handle; open(FIL,">>$myfil") || "Can't open $myfil: $! \n"; FIL->autoflush();
|
|---|