3
2.4 变量..................................................................................................................................52
2.5 名字..................................................................................................................................
53
2.5.1 名字查找...............................................................................................................
55
2.6 标量值..............................................................................................................................
57
2.6.1 数字文本...............................................................................................................
58
2.6.2 字串文本...............................................................................................................
59
2.6.3 选择自己的引号...................................................................................................
62
2.6.4 要么就完全不管引起...........................................................................................
63
2.6.5 代换数组数值.......................................................................................................
64
2.6.6“此处”文档 .............................................................................................................
65
2.6.7 V-字串文本............................................................................................................
67
2.6.8 其他文本记号.......................................................................................................
68
2.7 环境..................................................................................................................................
69
2.7.1 标量和列表环境...................................................................................................
69
2.7.2 布尔环境...............................................................................................................
70
2.7.3 空(void)环境....................................................................................................
71
2.7.4 代换环境...............................................................................................................
71
2.8 列表值和数组..................................................................................................................
72
2.8.1 列表赋值...............................................................................................................
75
2.8.2 数组长度...............................................................................................................
76
2.9 散列..................................................................................................................................
77
2.10 型团(typeglob)和文件句柄......................................................................................
79
2.11 输入操作符....................................................................................................................
80
2.11.1 命令输入(反勾号)操作符 .............................................................................
80
2.11.2 行输入(尖角)操作符.....................................................................................
81
2.11.3 文件名聚集操作符.............................................................................................
84
第三章 单目和双目操作符...........................................................................................................
86
3.1 项和列表操作符(左向)..............................................................................................
89
3.2 箭头操作符......................................................................................................................
91
3.3 自增和自减操作符..........................................................................................................
91
3.4 指数运算..........................................................................................................................
92
3.5 表意单目操作符..............................................................................................................
92
3.6 绑定操作符......................................................................................................................
93
3.7 乘号操作符......................................................................................................................
94
3.8 附加操作符......................................................................................................................
95
3.9 移位操作符......................................................................................................................
95
3.10 命名单目操作符和文件测试操作符............................................................................
96
3.11 关系操作符..................................................................................................................
100
3.12 相等操作符..................................................................................................................
101
3.13 位操作符......................................................................................................................
101
3.14 C 风格的逻辑(短路)操作符 ..................................................................................
102
3.15 范围操作符..................................................................................................................
103
3.16 条件操作符..................................................................................................................
105
3.16 赋值操作符..................................................................................................................
107
Click to buy NOW!
P
D
F
-
X
C
h
a
n
g
e
V
i
e
w
e
r
w
w
w
.
d
o
c
u
-
t
r
a
c
k
.
c
o
m
Click to buy NOW!
P
D
F
-
X
C
h
a
n
g
e
V
i
e
w
e
r
w
w
w
.
d
o
c
u
-
t
r
a
c
k
.
c
o
m
Click to buy NOW!
P
D
F
-
X
C
h
a
n
g
e
V
i
e
w
e
r
w
w
w
.
d
o
c
u
-
t
r
a
c
k
.
c
o
m
Click to buy NOW!
P
D
F
-
X
C
h
a
n
g
e
V
i
e
w
e
r
w
w
w
.
d
o
c
u
-
t
r
a
c
k
.
c
o
m