in reply to Re: most efficient buffer sort
in thread most efficient buffer sort

This is good stuff. However, having downloaded your CPAN module. Note that I changed the code above so it does a descending sort e.g.
for (rikeysort {/^\w+\s+(\d+)/; $2} <INPF>) {
This error now occurs
Can't call method "rikeysort" on an undefined value at ./x.pl line 401 +, <INPF> line 12.
There are only 12 records in my test input file
It works fine if I use ascending key sort
Any ideas what is happenning here ?

Replies are listed 'Best First'.
Re^3: most efficient buffer sort
by salva (Canon) on Dec 14, 2005 at 12:54 UTC
    have you changed the use Sort::Key statement to import rikeysort instead of ikeysort?
    use Sort::Key qw(rikeysort);
      Oops, schoolboy error. It works fine now. Many thanks.