perl reverse函数
reverse(逆转)操作将输入的一串列表(可能是数组)按相反的顺序返回。
my @arr=("Head_PMA1","Head_PMA2","Head_PMA3","Head_PMA4","Head_PMA5","Head_PMA6"); my @arr1=reverse(@arr); print "@arr1";
输出结果
Head_PMA6 Head_PMA5 Head_PMA4 Head_PMA3 Head_PMA2 Head_PMA1
4556