Name
reverse
Synopsis
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 this character by character.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.