"The #! line is always examined for switches as the line is being parsed.
Thus, if you're on a machine that allows only one argument with the #! line,
or worse, doesn't even recognize the #! line, you still can get consistent
switch behavior regardless of how Perl was invoked, even if *-x* was used to
find the beginning of the program."

--摘自`perldoc perlrun`

2011/7/8 许高飞 <[email protected]>

> 刚注意到脚本第一行写"#!/usr/bin/perl -w"在Windows下也会开启-w开关。
>
>  --
> 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。
> 要向此网上论坛发帖,请发送电子邮件至 [email protected]。
> 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。
> 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
>



-- 
Shu Cao

-- 
您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。
要向此网上论坛发帖,请发送电子邮件至 [email protected]。
要取消订阅此网上论坛,请发送电子邮件至 [email protected]。
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

回复