
We are searching data for your request:
Forums and discussions:
Manuals and reference books:
Data from registers:
Upon completion, a link will appear to access the found materials.
Funcția reverse () a Perl este utilizată pentru a inversa ordinea unui tablou. Funcția returnează un tablou inversat, dar nu inversează tabloul.
@REVERSED_LIST = invers (@ARRAY);
reverse () returnează @myNames = ('Jacob', 'Michael', 'Ethan', 'Andrew');
@reversedNames = invers (@myNames);
@myNamesreverse () @ myNames @ reversedNames @ reversedNames ('Andrew', 'Ethan', 'Michael', 'Jacob')
și @myNames rămâne aceeași.