Interesting

Perl Array Reverse() Function: Quick Tutorial

Perl Array Reverse() Function: Quick Tutorial


We are searching data for your request:

Forums and discussions:
Manuals and reference books:
Data from registers:
Wait the end of the search in all databases.
Upon completion, a link will appear to access the found materials.

Perl's reverse() function is used to reverse the order of an array. The function returns a reversed array but does not reverse the array.

@REVERSED_LIST = reverse(@ARRAY);

reverse()returns @myNames = ('Jacob', 'Michael', 'Ethan', 'Andrew');

@reversedNames = reverse(@myNames);

@myNamesreverse()@[email protected]@reversedNames('Andrew', 'Ethan', 'Michael', 'Jacob')

, and @myNames remains the same.



Comments:

  1. Cingeswell

    In this nothing there is a good idea. Ready to support you.

  2. Doukasa

    Life is this. You're not going to do anything.

  3. Gracin

    Of course. It happens. We can communicate on this theme.

  4. Aenescumb

    A very funny answer

  5. Aglaval

    I accept it with pleasure.

  6. Faugore

    The important and duly answer



Write a message