Search Results

Search: Posts Made By: Tanu
2,131
Posted By Tanu
Perl: Can someone please explain this code "sort { $a <=> $b } @unsorted"
@sorted = sort { $a <=> $b } @unsorted;
I am having hard time understanding how this works? I know the output but interested to know the working.


Thanks in advance.
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 07:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy