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.
In reply to Re: Populate and sort AoA
by GrandFather
in thread Populate and sort AoA
by nedals
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |