coderodde coderodde - 5 months ago 6x
Perl Question

In Perl source code, where can I find the implementation of the sort routine?

I would like to experiment with Perl by modifying the actual sort routine.
I did

over the source trying to find some files with name patterns mentioning
, yet did not find anything relevant.

Could anyone of you tell in what file the sort implementation resides?


I went to

The first search hit was, which looked like a good hint. Since that module does not define the search itself, I looked there for keywords that would help me along the way. I chose _quicksort and _mergesort. didn’t show any relevant results, so I tried just quicksort.

That gave me pp_sort.c, and there you go. Almost 200 lines full of sorting.