Of course, most of the time, reverse is adequate and correct; but the following gives you more control when you need it.
sub rev { my @r; push @r, pop @_ while @_; @r }
In reply to Re: How do I reverse array elements?
by superfrink
in thread How do I reverse array elements?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |