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
相關文章
相關標籤/搜索