在 tchrists broilerplate中,我发现在END块中显式关闭STDOUT.
END { close STDOUT }
我知道END和关闭,但我错过了为什么需要它.
For example,you can use this to make
sure your filter program managed to
finish its output without filling up
the disk:
END { close(STDOUT) || die "stdout close Failed: $!"; }
不管怎么说, 原文链接:https://www.f2er.com/Perl/172726.html