Hi Jethro,
Thanks for the quick response. When you say "remove the loop and the line before the loop" are you referring to the for loop and the line beginning with scalar? Sorry for the confusion, I am still very new to perl and programming in general, but I'm making headway in learning!