in reply to Populate and sort AoA

The two lines:

for (0..$#display) { ... splice(@display, $_, 1); ## delete from array. Added to top later. ... }

Don't play well together. Use a while loop instead. The splice is altering the number of elements in @display so unfortunate things are likely to happen.


Perl is Huffman encoded by design.