in reply to How do I reverse array elements?

If you don't want to change the content of original array, you can use this: map {unshift(@reversed,$_)} @original;