use Inline C => <<'END_C'; void print_2() { fprintf(stdout, "2\n"); } END_C print STDOUT "1"; print_2(); print STDOUT "\n";
prints:
2 1
It says, that perl has its own system of stream buffering.
In reply to Re: Flush all opened STDIO streams
by dmitnin
in thread Flush all opened STDIO streams
by dmitnin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |