错误信息不会通过管道传过去的
试试 "shell command 2>&1 |"

2009/7/14 Ericzhao82 <[email protected]>

> perl一个文件句柄
>
> open (STDERR, "shell command | ") or die ......;
> while (<STDERR>)
> {
> ...............
> }
>
> shell command返回的信息为 2(就是错误信息),我想对错误信息进行处理,可是运行后无效,还请各位指点,如何处理shell
> command返回的错误信息。
>
> 谢谢
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛“PerlChina Mongers 讨论组”论坛。
 要在此论坛发帖,请发电子邮件到 [email protected]
 要退订此论坛,请发邮件至 [email protected]
 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

回复