- 论坛徽章:
- 1
|
请教PERL包中OUR变量的含义及用法
http://www.perldoc.com/perl5.8.0/pod/func/our.html
An our declares the listed variables to be valid globals within the enclosing block, file, or eval. That is, it has the same scoping rules as a "my" declaration, but does not create a local variable. If more than one value is listed, the list must be placed in parentheses. The our declaration has no semantic effect unless "use strict vars" is in effect, in which case it lets you use the declared global variable without qualifying it with a package name. (But only within the lexical scope of the our declaration. In this it differs from "use vars", which is package scoped.)
其時上面這段話的意思.已經解釋得很清楚了..你自己瞧瞧吧..
上面URL你也可以去看看...
$ perldoc perldoc
就可以看到不少英文資料...
至於電子書嘛...前面有很多人
提過..自己找吧... |
|