in reply to Re^3: Alpha number sort (two truer to spec)
in thread Alpha number sort

It is always nice to see code that is smaller and faster. Two times faster an 6 times smaller.
      Rate gam3  tye
gam3 243/s   -- -69%
tye  772/s 218%   --
The regex still had one bug: you need a \d in the backtrace to keep it from matching 2.11. on 2.1/1.
qr/((?<!\.)(\d+)\.\d+(?![\.\d])|\d+)/
I would never have thought of using s///g in place of my while loop.
-- gam3
A picture is worth a thousand words, but takes 200K.