Perl script buffering (GNU Emacs FAQ For MS Windows)

Up: Buffering in shells and subprocesses [Contents][Index]


7.3.1 Perl script buffering

A handy solution for Perl scripts to the above problem is to use:

# Turn all buffering off.
select((select(STDOUT), $| = 1)[0]);
select((select(STDERR), $| = 1)[0]);
select((select(STDIN), $| = 1)[0]);

AltStyle によって変換されたページ (->オリジナル) /