Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: returnChapter 5
Function Reference
Next: Reference: rewinddir
 

reverse

reverse list

Returns a list value consisting of the elements of list in the opposite order. This is fairly efficient because it just swaps the pointers around. In scalar context, the function concatenates all the elements of list together and returns the reverse of that, character by character.


Previous: Reference: returnPerl in a NutshellNext: Reference: rewinddir
Reference: returnBook IndexReference: rewinddir