在 tchrists broilerplate中,我发现在END块中显式关闭STDOUT.
END { close STDOUT }@H_403_14@我知道END和关闭,但我错过了为什么需要它. @H_403_14@当开始搜索时,在perlfaq8中找到以下内容:
@H_403_14@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: $!"; }@H_403_14@不管怎么说,