... Assuming that $limit wasn't already defined as "whatever - 1". You're thinking of $limit strictly in terms of "scalar @array", which was not what I was thinking when I wrote that little snippet. :)
Comment on Re^4: Quick easy question: What does $i mean?