|
发表于 2006-3-30 15:48:06
|
显示全部楼层
Post by yongjian
Ya, I missed a fi there, just added. And ${#a[@]} is the notation to count the number of elements in an array. ${#a} is the same. It is not the last element's index ID. Same thing, in perl $#a counts the number in @a but not the index of the last element.
To yongjian,
In perl, $#a is the last index of an array. |
|