The module Text::CSV_XS will help you create the CSV file. As for converting the "binary" file - how could we possibly suggest anything without knowing what format the file is in? Please describe the format as best you can and give a *small* data sample from it.