I'm lost about where you're lost. Here's the things that I think you'll need to know
to do this task, but I'm not sure which of these you know and which you don't.
I enjoy helping people. But I keep wondering "help you with WHAT?" on each post.
Ask a more specific question, perhaps any of the above. If it's
of the above,
then I suggest you need a good book or two, or spend some time with Perl tutorials.