Keep It Simple, Stupid | |
PerlMonks |
Re: How do I reverse array elements?by Nilotpal_1984 (Initiate) |
on Sep 01, 2015 at 12:03 UTC ( [id://1140649]=note: print w/replies, xml ) | Need Help?? |
If you don't want to change the content of original array, you can use this:
map {unshift(@reversed,$_)} @original;
In Section
Seekers of Perl Wisdom
|
|