Perl6 / rakudo: How can I disable autorun?

I tried this, but this did not work:

$*OUT.autoflush( 0 );
+3
source share
2 answers

$*OUT.autoflush = Falseshould disable it and it works without errors, but it seems that the parrot IO is still automatically reset. Thus, at present it is not so simple.

+4
source

Rakudo does not support autorun. There $OUTPUT_AUTOFLUSHis a note in the 5to6-perlvar entry .

Some examples from ancient times mention the method autoflush, but this has disappeared:

$*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"

, , , .

+1

Source: https://habr.com/ru/post/1681024/


All Articles