Why are you doing this? The assistance you need is different depending on the motive for your task:
- This is homework: you need hints so you can figure out how to do it for yourself
- You are learning and this is a self assigned exercise: as above, but sample code and some discussion are indicated
- You have a real world task: sample code using "production" techniques, probably including use of modules, are indicated, but tutorial type discussion is not needed
- You have a real world problem to solve and are using it to learn Perl and programming fundamentals: as above except some discussion of the code is appropriate.
So, why are you doing this?
Premature optimization is the root of all job security