如何重定向和恢复STDOUT
STDOUT是Perl的标准输出文件句柄。除非指定了文件句柄,否则Perl中所有标准输出都将输出到终端。因为STDOUT只是一个全局变量,所以它可以被重定向和恢复。想在不需要更改源代码中的每个print语句的情况下实现程序日志记录?想捕获Perl CRON作业的标准输出?请继续阅读。
阅读它
LATEST COMMUNITY ARTICLES
- More commenting... maybe?
github.polettix.it - Perl Weekly Challenge 121: Invert Bit
blogs.perl.org - Web nostalgia: MojoX::Mechanize
github.polettix.it - On the eve of CPAN Testers
blogs.perl.org - PWC121 - The Travelling Salesman
github.polettix.it - PWC121 - Invert Bit
github.polettix.it - Floyd-Warshall algorithm implementations
github.polettix.it - Perl Weekly Challenge 120: Swap Odd/Even Bits and Clock Angle
blogs.perl.org - How I Uploaded a CPAN Module
blogs.perl.org - App::Easer released on CPAN
github.polettix.it