array_reverse
Perl's reverse() function is used to reverse the order of an array. The function returns a reversed array but does not reverse the array.
Perl的reverse()函数用于反转数组的顺序。 该函数返回反向数组,但不反向数组。
@REVERSED_LIST = reve
reverse()returns @myNames = ('Jacob', 'Michael', 'Ethan', &
@reversedNames = revers
@myNamesreverse()@myNames@reversedNames@reversedNames('Andrew', 'Ethan', 'Michael', 'Jacob')
@myNamesreverse()@ myNames @ reversedNames @ reversedNames('Andrew','Ethan','Michael','Jacob')
, and @myNames remains the same.
,和@myNames保持不变。
翻译自: https://www.thoughtco.com/perl-array-reverse-function-quick-tutorial-2641162
array_reverse