I notice that this is your first post. Welcome to the Monastery.
if you have not already done so.
It would help us if you had provided any existing Perl code you have, and an example of the data.
may be of interest to you. Should you need help installing modules check out the
section of this site.
If this is not any help to you let me know.
Hope this helps.