I'd recommend reading the
QandASection: arrays section of
Categorized Questions and Answers. It has lots of entries, including:
and probably others which you might find applicable to your situation.
You should also check out the FAQ part of the Perl docs, particularly the Arrays section of perlfaq4.