On Sat, Jul 17, 2010 at 08:16:25AM +0800, Michael Zeng wrote: >tcl 里面可以 redirect > /dev/null , >然后所有puts 都不会往Stdout输出 > >perl里面怎么玩 > >select /dev/null >select STDERR > >print "haha\n" 都不行啊, > >就是想控制下print输出的 句柄,再不写显式的句柄的情况下 >
可以试试自己定义个函数替换 print 来打印这种信息 > > > >-- > Yours Sincerely > Zeng Hong > >-- >您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 >要向此网上论坛发帖,请发送电子邮件至 [email protected]。 >要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 >若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。 > -- -- 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
