Science, Tech, Math › Computer Science Perl Array Reverse() Function: Quick Tutorial Share Flipboard Email Print hackNY.org / Flickr / CC BY-SA 2.0 Computer Science Perl PHP Programming Python Java Programming Javascript Programming Delphi Programming C & C++ Programming Ruby Programming Visual Basic View More By Kirk Brown Kirk Brown Computer Science Expert B.A., Abilene Christian University Kirk Brown is a systems software engineer with expertise in Perl, PHP, Ruby, and Python. Learn about our Editorial Process Updated on February 24, 2019 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. @REVERSED_LIST = reverse(@ARRAY); reverse()returns @myNames = ('Jacob', 'Michael', 'Ethan', 'Andrew'); @reversedNames = reverse(@myNames); @myNamesreverse()@myNames@reversedNames@reversedNames('Andrew', 'Ethan', 'Michael', 'Jacob') , and @myNames remains the same. Cite this Article Format mla apa chicago Your Citation Brown, Kirk. "Perl Array Reverse() Function: Quick Tutorial." ThoughtCo, Aug. 27, 2020, thoughtco.com/perl-array-reverse-function-quick-tutorial-2641162. Brown, Kirk. (2020, August 27). Perl Array Reverse() Function: Quick Tutorial. Retrieved from https://www.thoughtco.com/perl-array-reverse-function-quick-tutorial-2641162 Brown, Kirk. "Perl Array Reverse() Function: Quick Tutorial." ThoughtCo. https://www.thoughtco.com/perl-array-reverse-function-quick-tutorial-2641162 (accessed May 31, 2023). copy citation