Hm ... I already mentioned $|
https://perldoc.perl.org/perlvar#$OUTPUT_AUTOFLUSH
Though the documentation says
> forces a flush right away and after every write or print on the currently selected output channel.
so, this means one has to select LOG before using it???°
IO::Handle mentions a method autoflush
BUT from my experience are opened handles per default unbuffered???
Or are they only line-buffered, and the OP forgot the trailing "\n"?
°) and after some digging I found this in the FAQ
{ my $previous_default = select(STDOUT); # save previous default $|++; # autoflush STDOUT select(STDERR); $|++; # autoflush STDERR, to be +sure select($previous_default); # restore previous default }
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^2: Why can't I write to a custom log from a Catalyst application on SELinux/CentOS
by LanX
in thread Why can't I write to a custom log from a Catalyst application on SELinux/CentOS
by Cody Fendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |