in reply to Re: Efficiently sorting array by non-alpha strings
in thread Efficiently sorting array by non-alpha strings

But the Hash (%h) should only setup once in my solution, at the top of a script or so. That gives:
Rate knowmad browseruk pirate abigail borisz knowmad 22.1/s -- -49% -80% -93% -95% browseruk 43.4/s 96% -- -61% -86% -89% pirate 111/s 403% 156% -- -64% -73% abigail 308/s 1291% 609% 177% -- -25% borisz 411/s 1758% 847% 270% 34%
--
Boris

Replies are listed 'Best First'.
Re: Efficiently sorting array by non-alpha strings
by Abigail-II (Bishop) on Feb 20, 2004 at 17:02 UTC
    Highly suspicious results. You didn't publish source, but I have a hunch your code has %h lexical to the main program. This will make the sort a linear pass (no sorting happens). Try again with our %h.

    Abigail

      You are right, very impressive abigail-ii found my bug without any source. Here the corrected results:
      Rate knowmad browseruk borisz pirate abigail knowmad 22.1/s -- -49% -72% -80% -93% browseruk 43.0/s 94% -- -45% -62% -86% borisz 78.5/s 255% 83% -- -30% -74% pirate 112/s 407% 161% 43% -- -64% abigail 308/s 1291% 616% 292% 174% --
      Boris