Yup, I just got home and was able to check it. That question is almost verbatim from Chapter 3: Arrays and List Data, Exercise 1. Your teacher must have added the "without using reverse" so you can't use the answer in the back of the book.
It's nice to see teachers using Perl to teach programming.