perl中的特殊变量$[

特殊变量 $[ 表示数组的第一索引值,通常都为 0 ,若是咱们将 $[ 设置为 1,则数组的第一个索引值即为 1,第二个为 2,以此类推。web 举例:shell [root@localhost shell]# cat hello.pl #!/usr/bin/perl @test=qw(huang bao kang); print "@test\n"; $[=1; print "$test[1
相关文章
相关标签/搜索