Subject: | Sort::Merge doesn't sort in lexical order; possibly doesn't work at all |
I have not been able to get Sort::Merge module to work.
This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux-gnu-thread-multi
First, the example in the POD, with missing ']' added, just produces lines a never-ending line of zeroes:
Sort::Merge::sort_coderefs([sub{our $i=0; return ($i++ x 2)},
sub{our $j=0; return ($j++*5 x 2)}],
sub{print shift->[1]});
Second, while the POD states (of sources), "The first element should be a sort key, which will be compared lexographicly (using cmp)," the Sort::Merge source code doesn't even contain a use of the "cmp" operator.
:-/