How do dollar and number sign together work in perl?

前端 未结 3 615
天涯浪人
天涯浪人 2021-02-05 07:06

Today I have encountered a problem that required me to determine the maximum index of an array in perl. I used to do it this way:

my @array = (1, 2, 3);
print $         


        
3条回答
提交回复
热议问题