Advertisement

Perl 学习笔记

阅读量:

若未指定文件句柄给print(或printf),则将默认采用STDOUT。然而该默认属性可通过选型操作进行设置以实现不同的配置需求

若未指定文件句柄给print(或printf),则将默认采用STDOUT。然而该默认属性可通过选型操作进行设置以实现不同的配置需求

复制代码
 select BEDROCK;

    
 print “I hope Mr. Slate doesn’t find out about this.\n”;
    
 print “Wilma!\n”;

一旦assign了一个文件句柄(file handle),则它将turn into the default value. This is generally a bad idea, as it will disrupt the remainder of your program. It is therefore necessary to restore the original configuration upon completion. By default, output directed to a file handle will be buffered. Setting the variable $| to 1 will ensure that this buffer is clear

全部评论 (0)

还没有任何评论哟~