A) Search CPAN to see if it has already been done. If so, use it and you're done.
B) If the format has some documentation:
- ) Look up documentation to understand the source file.
- ) Convert the file by hand once to be sure you understand it.
- ) Write function to do the same thing you just did by hand.
- ) Upload it as a module to CPAN
C) If there is no documentation:
- ) Create a few of the simplest possible sets of data you can make, and save them.
- ) Open the files in a hex editor and compare them in order to figure out how the data is arranged.
- ) Repeat from Step 1 until you understand how all the features you care about are saved.
- ) Convert the file by hand.
- ) Write a function to do the same thing.
- ) Upload it as a module to CPAN.