You weren't incrementing $i.
- tye
In reply to Re^2: Sorting, recursion, and tail-call optimizations (why? $i) by tye in thread Sorting, recursion, and tail-call optimizations by Limbic~Region