start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: return Chapter 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: return Perl in a Nutshell Next: Reference: rewinddir
Reference: return Book Index Reference: rewinddir

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.