in reply to Data Manipulation

So you have given us an overview of your homework task, but you don't tell us what you are having trouble with nor show us the code that isn't doing what you want so we can't help you much beyond saying: read the documentation and have a look through the Tutorials.

If you want specific help you need to ask a specific question. For help with how to ask see I know what I mean. Why don't you?.

Perl is the programming world's equivalent of English