Perls 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()myNamesreversedNamesreversedNames(Andrew, Ethan, Michael, Jacob) , and myNames remains the same.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.