pop语法:
pop ARRAY
pop
push语法:
push ARRAY,LIST
实例练习:
/home/lee#perl -e '@array=qw/a b c/;pop @array;print join(" ",@array),"\n"'
a b
#数组3个元素,pop后,只省下2个
/home/lee#perl -e '@array=qw/a b c/;push @array,d;print join(" ",@array),"\n"'
a b c d
#数组3个元素,push一个后,数组元素个数为4个
^_^,ok,先到这里