There are several answers for Perl 6 in the days of Parrot, and they don't seem to work at the moment:
This is the version of Rakudo 2017.04.3, built on the MoarVM version 2017.04-53-g66c6dda implementation of Perl 6.c.
Reply to Does perl6 include "autoflush" by default? says it is enabled by default (but it was 2011).
Here is the program I played with:
$*ERR.say: "1. This is an error";
$*OUT.say: "2. This is standard out";
And its conclusion, which is a bad order:
2. This is standard out
1. This is an error
So maybe I need to turn it on. There How can I turn off autoflush? which mentions the method autoflush:
$*ERR.autoflush = True;
$*ERR.say: "1. This is an error";
$*OUT.say: "2. This is standard out";
But this does not work:
There is no such "autoflush" method for invocant like "IO :: Handle"
, , -, . , , Perl 6 .
, Perl 6 , , ? Perl 5 , ?